mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
fix(zsh init script): avoid adding preexec commands twice (#3049)
This commit is contained in:
committed by
GitHub
parent
cc0a885e75
commit
e64a99262e
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user