Skip to content

Commit 69cc717

Browse files
committed
Avoid hooking _agkozak_precmd twice
1 parent 9d91ef2 commit 69cc717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agkozak-zsh-theme.plugin.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ agkozak_zsh_theme() {
419419

420420
zle -N zle-keymap-select
421421

422-
typeset -ga precmd_functions
423-
precmd_functions+=(_agkozak_precmd)
422+
autoload -Uz add-zsh-hook
423+
add-zsh-hook precmd _agkozak_precmd
424424

425425
# Only display the $HOSTNAME for an ssh connection or for a superuser
426426
if _agkozak_is_ssh || [[ $EUID -eq 0 ]]; then

0 commit comments

Comments
 (0)