inverted an if statement for sourcing fzf zsh files. fixed login error when distros did not bundle fzfs completions.

This commit is contained in:
Gabe Venberg 2021-03-31 14:22:22 -05:00
parent e0247b6ff1
commit a672fb9464

View file

@ -197,7 +197,7 @@ PROMPT='%F{cyan}[%n@%m]%f%F{red}├────┤%f${vcs_info_msg_0_}
source $(find /usr/share -path '*fzf/*key-bindings.zsh' -print -quit 2> /dev/null) source $(find /usr/share -path '*fzf/*key-bindings.zsh' -print -quit 2> /dev/null)
#zsh completions, if it exists. #zsh completions, if it exists.
testPath=$(find /usr/share -path '*fzf/*completion.zsh' -print -quit 2> /dev/null) testPath=$(find /usr/share -path '*fzf/*completion.zsh' -print -quit 2> /dev/null)
if test $(echo $testPath | wc -c) -ne 0 if test $(echo $testPath | wc -c) -eq 0
then then
source $testPath source $testPath
fi fi