age: add nibble recipient, rekey secrets
This commit is contained in:
parent
0a1f58dc5d
commit
0bdaefcf97
6 changed files with 39 additions and 79 deletions
|
|
@ -239,13 +239,12 @@ else
|
|||
log "oh-my-zsh already installed"
|
||||
fi
|
||||
|
||||
# Plugins: zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search, fzf-tab, deja
|
||||
# Plugins: zsh-autosuggestions, zsh-syntax-highlighting, zsh-history-substring-search, fzf-tab
|
||||
declare -A PLUGINS=(
|
||||
[zsh-autosuggestions]="https://github.com/zsh-users/zsh-autosuggestions"
|
||||
[zsh-syntax-highlighting]="https://github.com/zsh-users/zsh-syntax-highlighting"
|
||||
[zsh-history-substring-search]="https://github.com/zsh-users/zsh-history-substring-search"
|
||||
[fzf-tab]="https://github.com/Aloxaf/fzf-tab"
|
||||
[deja]="https://github.com/Giammarco-Ferranti/deja"
|
||||
)
|
||||
for plugin in "${!PLUGINS[@]}"; do
|
||||
if [[ -d "$ZSH_CUSTOM/plugins/$plugin" ]]; then
|
||||
|
|
@ -256,21 +255,6 @@ for plugin in "${!PLUGINS[@]}"; do
|
|||
fi
|
||||
done
|
||||
|
||||
# deja predictive autosuggestions: binary via official installer (into
|
||||
# ~/.local/bin), then seed DB from history. SHELL neutralized so the
|
||||
# installer never touches .zshrc — the plugin above handles activation.
|
||||
if ! command -v deja >/dev/null 2>&1; then
|
||||
log "installing deja binary via official installer"
|
||||
curl -fsSL https://raw.githubusercontent.com/Giammarco-Ferranti/deja/main/install.sh \
|
||||
| INSTALL_DIR="$USER_HOME/.local/bin" SHELL=/bin/sh sh \
|
||||
|| log "WARNING: deja install failed; retry manually."
|
||||
fi
|
||||
if command -v deja >/dev/null 2>&1 && [[ ! -s "$USER_HOME/.local/share/deja/deja.db" ]]; then
|
||||
log "seeding deja DB from shell history"
|
||||
HISTFILE="${HISTFILE:-$USER_HOME/.zsh_history}" deja import \
|
||||
|| log "WARNING: deja import failed; run 'deja import' later."
|
||||
fi
|
||||
|
||||
# Step 8: tpm (tmux plugin manager)
|
||||
if [[ ! -d "$USER_HOME/.tmux/plugins/tpm" ]]; then
|
||||
log "installing tpm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue