Use POWERLINE_CONFIG_COMMAND environment variable
This commit is contained in:
parent
7b1d7bbb9e
commit
c08340e088
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue