fish_config prompt choose: reset mode prompt and load it like right prompt

Fixes #11937
This commit is contained in:
Johannes Altmanninger
2025-10-14 00:49:47 +02:00
parent b44209e14e
commit d4837f9ef1
4 changed files with 56 additions and 21 deletions

View File

@@ -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