From cf8fa12c8735e56d75701a307133228c4b6e4631 Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Tue, 31 May 2016 11:09:30 +0100 Subject: [PATCH] Messing around with line indenting? --- zsh/zshrc.symlink | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/zsh/zshrc.symlink b/zsh/zshrc.symlink index 43ce880..1ac5e97 100644 --- a/zsh/zshrc.symlink +++ b/zsh/zshrc.symlink @@ -204,19 +204,19 @@ bindkey -rpM vicmd "^[" # Show if we are in normal mode. function zle-line-init zle-keymap-select () { - if [[ "$KEYMAP" == "vicmd" ]]; then - RESULT="N" - else - RESULT="I" - fi +if [[ "$KEYMAP" == "vicmd" ]]; then + RESULT="N" +else + RESULT="I" +fi - set-editing-mode "$RESULT" +set-editing-mode "$RESULT" - COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]" - PS1="$(command whoami)@%{$COLOR%}$(nice-hostname)%{$reset_color%} in %1d$(git-prompt-info) +COLOR="$fg[$FEATURE_COLORS[$(nice-hostname)]]" +PS1="$(command whoami)@%{$COLOR%}$(nice-hostname)%{$reset_color%} in %1d$(git-prompt-info) [%{$COLOR%}$(get-editing-mode)%{$reset_color%}]→ " - zle reset-prompt +zle reset-prompt } zle -N zle-line-init