1
0
Fork 0

age: add nibble recipient, rekey secrets

This commit is contained in:
Rain 2026-08-26 13:38:02 -04:00
parent e6b148e059
commit 0a1f58dc5d
4 changed files with 58 additions and 15 deletions

View file

@ -6,7 +6,8 @@
# starship, lazygit, yt-dlp, etc.)
#
# Also: install oh-my-zsh, zsh-autosuggestions, zsh-syntax-highlighting,
# zsh-history-substring-search, fzf-tab.
# zsh-history-substring-search, fzf-tab, and the deja autosuggestion engine
# (binary via official installer + plugin clone).
#
# Runs as the unprivileged user, but uses sudo for system packages.
#
@ -277,6 +278,30 @@ install_zsh_plugin zsh-users/zsh-syntax-highlighting "$ZSH_CUSTOM/plugins/zsh
install_zsh_plugin zsh-users/zsh-history-substring-search "$ZSH_CUSTOM/plugins/zsh-history-substring-search"
install_zsh_plugin Aloxaf/fzf-tab "$ZSH_CUSTOM/plugins/fzf-tab"
install_zsh_plugin Giammarco-Ferranti/deja "$ZSH_CUSTOM/plugins/deja"
# --------------------------- deja (predictive autosuggestions) -------------
# Binary via the official installer (checksum-verified release tarball into
# ~/.local/bin). SHELL is neutralized so the installer never appends its
# activation block to .zshrc — the OMZ plugin cloned above handles that.
# `deja import` seeds the suggestion DB from $HISTFILE (falls back to
# ~/.zsh_history); safe to re-run, it dedupes.
if command -v deja >/dev/null 2>&1; then
log "deja already installed: $(deja --version 2>/dev/null | head -1)"
else
log "installing deja binary via official installer"
if curl -fsSL https://raw.githubusercontent.com/Giammarco-Ferranti/deja/main/install.sh \
| INSTALL_DIR="$USER_HOME/.local/bin" SHELL=/bin/sh sh; then
log "deja installed"
else
log "WARNING: deja install failed; zsh-autosuggestions behavior will be absent. Retry manually."
fi
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' in an interactive shell later."
fi
# --------------------------- TPM (tmux plugin manager) ---------------------
if [[ ! -d "$USER_HOME/.tmux/plugins/tpm" ]]; then
log "cloning tmux plugin manager"