Messing around with line indenting?
This commit is contained in:
parent
f9bec91cb1
commit
cf8fa12c87
1 changed files with 9 additions and 9 deletions
|
@ -204,19 +204,19 @@ bindkey -rpM vicmd "^["
|
||||||
|
|
||||||
# Show if we are in normal mode.
|
# Show if we are in normal mode.
|
||||||
function zle-line-init zle-keymap-select () {
|
function zle-line-init zle-keymap-select () {
|
||||||
if [[ "$KEYMAP" == "vicmd" ]]; then
|
if [[ "$KEYMAP" == "vicmd" ]]; then
|
||||||
RESULT="N"
|
RESULT="N"
|
||||||
else
|
else
|
||||||
RESULT="I"
|
RESULT="I"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set-editing-mode "$RESULT"
|
set-editing-mode "$RESULT"
|
||||||
|
|
||||||
COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]"
|
COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]"
|
||||||
PS1="$(command whoami)@%{$COLOR%}$(nice-hostname)%{$reset_color%} in %1d$(git-prompt-info)
|
PS1="$(command whoami)@%{$COLOR%}$(nice-hostname)%{$reset_color%} in %1d$(git-prompt-info)
|
||||||
[%{$COLOR%}$(get-editing-mode)%{$reset_color%}]→ "
|
[%{$COLOR%}$(get-editing-mode)%{$reset_color%}]→ "
|
||||||
|
|
||||||
zle reset-prompt
|
zle reset-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N zle-line-init
|
zle -N zle-line-init
|
||||||
|
|
Loading…
Add table
Reference in a new issue