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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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