Skip to content

Commit

Permalink
Autoload add-zsh-hook prior to call it
Browse files Browse the repository at this point in the history
The proper way to use zsh hooks is to autoload the function before using it
  • Loading branch information
chocoelho authored Nov 17, 2018
1 parent 957dba5 commit 13debdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guri.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ guri-ret-status() {
echo "%(?:%{$fg_bold[green]%}$GURI_PROMPT_SYMBOL:%{$fg_bold[red]%}$GURI_PROMPT_SYMBOL) "
}

autoload -Uz add-zsh-hook

add-zsh-hook chpwd guri-run-dotfile
add-zsh-hook precmd guri-venv-indicator

Expand Down

0 comments on commit 13debdb

Please sign in to comment.