Use POWERLINE_CONFIG_COMMAND environment variable

This commit is contained in:
ZyX 2014-05-24 13:59:04 +04:00
parent 7b1d7bbb9e
commit c08340e088
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
if-shell 'test -z "$POWERLINE_COMMAND"' 'if-shell "which powerline-client" "set-environment -g POWERLINE_COMMAND powerline-client" "set-environment -g POWERLINE_COMMAND powerline"'
if-shell 'test -z "$POWERLINE_CONFIG_COMMAND"' 'set-environment -g POWERLINE_CONFIG_COMMAND powerline-config'
# Don't version-check for this core functionality -- anything too old to
# support these options likely won't work well with powerline
@ -17,5 +18,5 @@ set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour
# Simplify tmux version checking by using multiple config files. Source these
# config files based on the version in which tmux features were added and/or
# deprecated. By splitting these configuration options into separate files,
run-shell "powerline-config tmux source"
run-shell "eval $POWERLINE_CONFIG_COMMAND tmux source"
# vim: ft=tmux