Undo using eval in fish binding
`eval` breaks on pipes due to improper space handling
This commit is contained in:
parent
f1242d192a
commit
4f7ceaa9ee
|
@ -61,10 +61,10 @@ function powerline-setup
|
||||||
end
|
end
|
||||||
echo "
|
echo "
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
eval \$POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS shell $promptside $addargs
|
env \$POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS shell $promptside $addargs
|
||||||
end
|
end
|
||||||
function fish_right_prompt
|
function fish_right_prompt
|
||||||
eval \$POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS shell right $addargs
|
env \$POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS shell right $addargs
|
||||||
$rpromptpast
|
$rpromptpast
|
||||||
end
|
end
|
||||||
function fish_mode_prompt
|
function fish_mode_prompt
|
||||||
|
@ -78,7 +78,7 @@ function powerline-setup
|
||||||
_powerline_set_default_mode
|
_powerline_set_default_mode
|
||||||
_powerline_update
|
_powerline_update
|
||||||
end
|
end
|
||||||
if eval $POWERLINE_CONFIG_COMMAND shell --shell=fish uses tmux
|
if env $POWERLINE_CONFIG_COMMAND shell --shell=fish uses tmux
|
||||||
if set -q TMUX
|
if set -q TMUX
|
||||||
if tmux refresh -S ^/dev/null
|
if tmux refresh -S ^/dev/null
|
||||||
set -g _POWERLINE_TMUX "$TMUX"
|
set -g _POWERLINE_TMUX "$TMUX"
|
||||||
|
|
Loading…
Reference in New Issue