Revert "fix(zsh): indicate vi mode in prompt"
This reverts commit a194d840244f86a1a5dde20cb5fd9ab73a381a12.
This commit is contained in:
+1
-3
@@ -1,7 +1,6 @@
|
||||
# vim: set ft=zsh:
|
||||
|
||||
function _set_rprompt() {
|
||||
# shellcheck disable=SC2154
|
||||
local -a _status=("${pipestatus[@]}")
|
||||
RPROMPT=""
|
||||
|
||||
@@ -49,8 +48,7 @@ setopt PROMPT_SUBST
|
||||
|
||||
# https://zsh.sourceforge.io/Doc/Release/Parameters.html
|
||||
# https://zsh.sourceforge.io/Doc/Release/Prompt-Expansion.html
|
||||
# shellcheck disable=SC2016
|
||||
PROMPT='%(#.%F{red}.%12F)%n@%m%f %1~ ${VI_MODE_INDICATOR:-%(#.#.$)} '
|
||||
PROMPT='%(#.%F{red}.%12F)%n@%m%f %1~ %(#.#.$) '
|
||||
PROMPT_START=$'%{\e]133;A\a%}'
|
||||
PROMPT_END=$'%{\e]133;B\a%}'
|
||||
export PROMPT=${PROMPT_START}${PROMPT}${PROMPT_END}
|
||||
|
||||
Reference in New Issue
Block a user