1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-21 17:42:23 +00:00

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

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