Add option to force show vi mode

This commit is contained in:
Cameron Moon 2017-08-08 12:19:10 +10:00
parent 6658ea3db0
commit 5337033ee4

View File

@ -585,7 +585,9 @@ end
function __bobthefish_prompt_vi -S -d 'Display vi mode'
[ "$theme_display_vi" != 'no' ]; or return
[ "$fish_key_bindings" = 'fish_hybrid_key_bindings' -o "$fish_key_bindings" = 'fish_vi_key_bindings' ]; or return
[ "$fish_key_bindings" = 'fish_vi_key_bindings' \
-o "$fish_key_bindings" = 'fish_hybrid_key_bindings' \
-o "$theme_display_vi" = 'force' ]; or return
switch $fish_bind_mode
case default
__bobthefish_start_segment $__color_vi_mode_default