Use `env` for running $POWERLINE_CONFIG_COMMAND
This way we are making sure that this variable is always treated as a single path to executable which is not so in case of `eval`.
This commit is contained in:
parent
faef4585b2
commit
c43bd06bd6
|
@ -1,2 +1,2 @@
|
|||
if-shell 'test -z "$POWERLINE_CONFIG_COMMAND"' 'set-environment -g POWERLINE_CONFIG_COMMAND powerline-config; run-shell "eval \$POWERLINE_CONFIG_COMMAND tmux setup"' 'run-shell "eval \$POWERLINE_CONFIG_COMMAND tmux setup"'
|
||||
if-shell 'test -z "$POWERLINE_CONFIG_COMMAND"' 'set-environment -g POWERLINE_CONFIG_COMMAND powerline-config; run-shell "env \"\$POWERLINE_CONFIG_COMMAND\" tmux setup"' 'run-shell "env \"\$POWERLINE_CONFIG_COMMAND\" tmux setup"'
|
||||
# vim: ft=tmux
|
||||
|
|
Loading…
Reference in New Issue