Skip to content

Commit

Permalink
fix(zsh init script): avoid adding preexec commands twice (starship#3049
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mjeffryes authored Sep 9, 2021
1 parent cc0a885 commit e64a992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/starship.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e64a992

Please sign in to comment.