mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Early return
This commit is contained in:
parent
5314f8876a
commit
b094b1ec71
@ -370,8 +370,7 @@ function __bobthefish_prompt_dir -d 'Display a shortened form of the current dir
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __bobthefish_prompt_vi -d 'Display vi mode'
|
function __bobthefish_prompt_vi -d 'Display vi mode'
|
||||||
if [ "$theme_display_vi" = 'yes' ]
|
[ "$theme_display_vi" = 'yes' -a "$fish_bind_mode" != "$theme_display_vi_hide_mode" ]; or return
|
||||||
if [ "$fish_bind_mode" != "$theme_display_vi_hide_mode" ]
|
|
||||||
switch $fish_bind_mode
|
switch $fish_bind_mode
|
||||||
case default
|
case default
|
||||||
__bobthefish_start_segment $__bobthefish_med_grey $__bobthefish_dk_grey --bold
|
__bobthefish_start_segment $__bobthefish_med_grey $__bobthefish_dk_grey --bold
|
||||||
@ -385,8 +384,6 @@ function __bobthefish_prompt_vi -d 'Display vi mode'
|
|||||||
end
|
end
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function __bobthefish_virtualenv_python_version -d 'Get current python version'
|
function __bobthefish_virtualenv_python_version -d 'Get current python version'
|
||||||
set -l python_version (readlink (which python))
|
set -l python_version (readlink (which python))
|
||||||
|
Loading…
Reference in New Issue
Block a user