In fish also check for presence of powerline in $PATH

This commit is contained in:
ZyX 2014-02-15 20:10:07 +04:00
parent 999fad58bd
commit 4e6cd08078
1 changed files with 3 additions and 1 deletions

View File

@ -2,8 +2,10 @@ function powerline-setup
if test -z "$POWERLINE_COMMAND" if test -z "$POWERLINE_COMMAND"
if which powerline-client >/dev/null if which powerline-client >/dev/null
set -g -x POWERLINE_COMMAND powerline-client set -g -x POWERLINE_COMMAND powerline-client
else else if which powerline >/dev/null
set -g -x POWERLINE_COMMAND powerline set -g -x POWERLINE_COMMAND powerline
else
set -g -x POWERLINE_COMMAND (dirname (status -f))/../../../scripts/powerline
end end
end end
function --on-variable POWERLINE_COMMAND _powerline_update function --on-variable POWERLINE_COMMAND _powerline_update