aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-08-18 10:52:53 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-08-18 10:52:53 -0700
commit2b87705a467dfcfeb7d40ccd9f42f6f3c91e638a (patch)
tree8cd858bfa5d04150b228005377b7b218fe6a5ccb /share/tools
parent34faf7638ea266783ec94377e1ba35b5e2d6605f (diff)
Remove vi mode indicator from classic_git prompt
It is duplicative of the fish_mode_prompt function Fixes #2228
Diffstat (limited to 'share/tools')
-rw-r--r--share/tools/web_config/sample_prompts/classic_git.fish24
1 files changed, 1 insertions, 23 deletions
diff --git a/share/tools/web_config/sample_prompts/classic_git.fish b/share/tools/web_config/sample_prompts/classic_git.fish
index 39f3ab81..888f95cb 100644
--- a/share/tools/web_config/sample_prompts/classic_git.fish
+++ b/share/tools/web_config/sample_prompts/classic_git.fish
@@ -69,27 +69,5 @@ function fish_prompt --description 'Write out the prompt'
set prompt_status ' ' (set_color $fish_color_status) "[$last_status]" "$normal"
end
- set -l mode_str
- switch "$fish_key_bindings"
- case '*_vi_*' '*_vi'
- # possibly fish_vi_key_bindings, or custom key bindings
- # that includes the name "vi"
- set mode_str (
- echo -n " "
- switch $fish_bind_mode
- case default
- set_color --bold --background red white
- echo -n "[N]"
- case insert
- set_color --bold green
- echo -n "[I]"
- case visual
- set_color --bold magenta
- echo -n "[V]"
- end
- set_color normal
- )
- end
-
- echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $fish_color_host) "$__fish_prompt_hostname" $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (__fish_git_prompt) $normal $prompt_status "$mode_str" "> "
+ echo -n -s (set_color $fish_color_user) "$USER" $normal @ (set_color $fish_color_host) "$__fish_prompt_hostname" $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (__fish_git_prompt) $normal $prompt_status "> "
end