aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools/web_config/sample_prompts/classic_git.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/tools/web_config/sample_prompts/classic_git.fish')
-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