aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorMatthew Hoener <matthewh@ca.ibm.com>2018-02-08 02:15:02 +0300
committerMatthew Hoener <matthewh@ca.ibm.com>2018-02-08 03:51:12 +0300
commit162caba19cdc51ea52eb5fabd5d18f03cb20e467 (patch)
tree32c426990136abd99df3d7adaa6413a167aac147 /powerlevel9k.zsh-theme
parentc69d21016caa712481f3738a62ba2722d5583047 (diff)
Don't show segment if POWERLEVEL9K_VI_INSERT_MODE_STRING == ''
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme1
1 files changed, 1 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 15a0b68a..6e30efee 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1366,6 +1366,7 @@ prompt_vi_mode() {
"$1_prompt_segment" "$0_NORMAL" "$2" "$DEFAULT_COLOR" "default" "$POWERLEVEL9K_VI_COMMAND_MODE_STRING"
;;
main|viins|*)
+ if [[ -z $POWERLEVEL9K_VI_INSERT_MODE_STRING ]]; then return; fi
"$1_prompt_segment" "$0_INSERT" "$2" "$DEFAULT_COLOR" "blue" "$POWERLEVEL9K_VI_INSERT_MODE_STRING"
;;
esac