From 04c293e40d7480fc79d67033ac559c77fc550ab3 Mon Sep 17 00:00:00 2001 From: sthsieh Date: Fri, 23 May 2014 23:44:19 +0800 Subject: [PATCH] Add fish shell vi-mode support --- powerline/bindings/fish/powerline-setup.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/powerline/bindings/fish/powerline-setup.fish b/powerline/bindings/fish/powerline-setup.fish index ff0d42bc..0e9fde04 100644 --- a/powerline/bindings/fish/powerline-setup.fish +++ b/powerline/bindings/fish/powerline-setup.fish @@ -33,6 +33,9 @@ function powerline-setup if test -z "$POWERLINE_COMMAND" set -g POWERLINE_COMMAND (eval $POWERLINE_CONFIG shell command) end + function --on-variable fish_bind_mode _powerline_bind_mode + set -g -x _POWERLINE_MODE $fish_bind_mode + end function --on-variable POWERLINE_COMMAND _powerline_update set -l addargs "--last_exit_code=\$status" set -l addargs "$addargs --last_pipe_status=\$status" @@ -67,6 +70,7 @@ function powerline-setup " _powerline_set_columns end + _powerline_bind_mode _powerline_update end if eval $POWERLINE_CONFIG shell --shell=fish uses tmux