From 4e6cd08078b8cde17372d49bcc3147e4e67b4b3d Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 15 Feb 2014 20:10:07 +0400 Subject: [PATCH] In fish also check for presence of powerline in $PATH --- powerline/bindings/fish/powerline-setup.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/powerline/bindings/fish/powerline-setup.fish b/powerline/bindings/fish/powerline-setup.fish index e4dc1ace..ee90c9fd 100644 --- a/powerline/bindings/fish/powerline-setup.fish +++ b/powerline/bindings/fish/powerline-setup.fish @@ -2,8 +2,10 @@ function powerline-setup if test -z "$POWERLINE_COMMAND" if which powerline-client >/dev/null set -g -x POWERLINE_COMMAND powerline-client - else + else if which powerline >/dev/null set -g -x POWERLINE_COMMAND powerline + else + set -g -x POWERLINE_COMMAND (dirname (status -f))/../../../scripts/powerline end end function --on-variable POWERLINE_COMMAND _powerline_update