mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -03:00
fish_config prompt choose: reset mode prompt and load it like right prompt
Fixes #11937
This commit is contained in:
@@ -79,9 +79,6 @@ function fish_prompt
|
||||
_nim_prompt_wrapper $retc '' (date +%X)
|
||||
|
||||
# Vi-mode
|
||||
# The default mode prompt would be prefixed, which ruins our alignment.
|
||||
function fish_mode_prompt
|
||||
end
|
||||
|
||||
if test "$fish_key_bindings" = fish_vi_key_bindings
|
||||
or test "$fish_key_bindings" = fish_hybrid_key_bindings
|
||||
@@ -138,3 +135,7 @@ function fish_prompt
|
||||
echo -n '$ '
|
||||
set_color normal
|
||||
end
|
||||
|
||||
# The default mode prompt would be prefixed, which ruins our alignment.
|
||||
function fish_mode_prompt
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user