fixed sourcing zsh completions when they were not included in distro packaging.

This commit is contained in:
Gabe Venberg 2021-03-15 17:49:56 -05:00
parent d2a011e151
commit 134ab4d36b

View file

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