In fish also check for presence of powerline in $PATH
This commit is contained in:
parent
999fad58bd
commit
4e6cd08078
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue