Fish bindings: replace eval with source

For some reason, fish 2.5.0 freaks out under certain circumstances if
your `config.fish` calls `eval` at any point. For equally mysterious
reasons, replacing `eval` with `source` makes things work again.

See fish-shell/fish-shell#3809 for more details.
This commit is contained in:
Teo Klestrup Röijezon 2017-02-06 15:02:53 +01:00
parent 8e0bed9677
commit 55928a72bc
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ function powerline-setup
set rpromptpast set rpromptpast
set columnsexpr '(_powerline_columns)' set columnsexpr '(_powerline_columns)'
end end
eval " echo "
function fish_prompt function fish_prompt
env \$POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS shell $promptside $addargs env \$POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS shell $promptside $addargs
end end
@ -73,7 +73,7 @@ function powerline-setup
function _powerline_set_columns --on-signal WINCH function _powerline_set_columns --on-signal WINCH
set -g _POWERLINE_COLUMNS $columnsexpr set -g _POWERLINE_COLUMNS $columnsexpr
end end
" " | source
_powerline_set_columns _powerline_set_columns
end end
_powerline_set_default_mode _powerline_set_default_mode