aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-17 03:39:49 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-17 03:39:49 +0300
commitce7b99cdaf4459afb7d7043cae25e4f02489ba87 (patch)
tree3b0486d9bde3f2410dd262d28317199ce7fc65ac /powerlevel9k.zsh-theme
parent9b067ea29c1231ee147476a4ebd012b0722a067d (diff)
Added a mechanism to make deprecated segments visible to the user.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme8
1 files changed, 8 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0707276d..7f3af8a7 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -754,6 +754,14 @@ powerlevel9k_init() {
print -P "You should put: %F{blue}export TERM=\"xterm-256color\"%f in your \~\/.zshrc"
fi
+ typeset -Ah deprecated_segments
+ # old => new
+ deprecated_segments=(
+ 'longstatus' 'status'
+ )
+ print_deprecation_warning deprecated_segments
+
+
setopt prompt_subst
setopt LOCAL_OPTIONS