diff --git a/zshrc.zsh b/zshrc.zsh index 792a1d8..b50caf7 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -36,7 +36,10 @@ ezacd () { eza --oneline --long --classify --icons --header } -chpwd_functions=(${chpwd_functions[@]} "ezacd") +# Only add ezacd to chpwd_functions if it's not already there +if (( ${chpwd_functions[(I)ezacd]} == 0 )); then + chpwd_functions=(${chpwd_functions[@]} "ezacd") +fi # Go Lang stuff export GOPATH=$HOME/go