Skip to content

Commit 7cf8fdf

Browse files
fumiya-kumeclaude
andcommitted
Improve zsh hook handling and remove trustdb.gpg from symlinks
- Use add-zsh-hook for vcs_info precmd instead of overwriting precmd() - Consolidate autoload for vcs_info and add-zsh-hook - Remove trustdb.gpg from gnupg symlink list (auto-generated file) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 194ed65 commit 7cf8fdf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

home/.zshrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Prompt: built-in minimal Git prompt via vcs_info (no external deps)
2-
autoload -Uz vcs_info
2+
autoload -Uz vcs_info add-zsh-hook
33
setopt prompt_subst
44
zstyle ':vcs_info:*' enable git
55
zstyle ':vcs_info:git*' formats '%F{magenta}(%b%u)%f'
66
zstyle ':vcs_info:git*' actionformats '%F{magenta}(%b|%a%u)%f'
77
zstyle ':vcs_info:*' unstagedstr '*'
88
zstyle ':vcs_info:*' stagedstr '+'
9-
precmd() { vcs_info }
9+
add-zsh-hook precmd vcs_info
1010
PROMPT='%F{cyan}%n@%m%f %F{yellow}%~%f ${vcs_info_msg_0_}%# '
1111
setopt hist_ignore_all_dups inc_append_history hist_no_store hist_reduce_blanks share_history
1212
HISTFILE=~/.zsh_history

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if [[ -d "$DOTFILES_DIR/.gnupg" ]]; then
8686
[[ -e "$f" ]] || continue
8787
name="$(basename "$f")"
8888
case "$name" in
89-
gpg-agent.conf|gpg.conf|pubring.kbx|trustdb.gpg|sshcontrol)
89+
gpg-agent.conf|gpg.conf|pubring.kbx|sshcontrol)
9090
link "$f" "$HOME/.gnupg/$name"
9191
;;
9292
*)

0 commit comments

Comments
 (0)