From a672fb9464d63108e770e5a105635dd9f1e8fcd2 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Wed, 31 Mar 2021 14:22:22 -0500 Subject: [PATCH] inverted an if statement for sourcing fzf zsh files. fixed login error when distros did not bundle fzfs completions. --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index a00724f..ef66da9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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) #zsh completions, if it exists. 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 source $testPath fi