fix(zsh init script): avoid adding preexec commands twice (#3049)

This commit is contained in:
Matthew (Matt) Jeffryes
2021-09-09 13:19:01 -07:00
committed by GitHub
parent cc0a885e75
commit e64a99262e
+1 -1
View File
@@ -56,7 +56,7 @@ starship_preexec() {
if [[ -z ${precmd_functions[(re)starship_precmd]} ]]; then
precmd_functions+=(starship_precmd)
fi
if [[ -z ${preexec_function[(re)starship_preexec]} ]]; then
if [[ -z ${preexec_functions[(re)starship_preexec]} ]]; then
preexec_functions+=(starship_preexec)
fi