Undo using eval in fish binding

`eval` breaks on pipes due to improper space handling
This commit is contained in:
mingmingrr 2022-06-06 13:00:19 -04:00 committed by GitHub
parent f1242d192a
commit 4f7ceaa9ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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"