diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-11-17 23:54:06 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-11-17 23:54:06 +0300 |
commit | b83cfd7515d5d6c0feaa9915f1a89a5d45a2c689 (patch) | |
tree | 14d0355d50ea630e379c93885066bc15c3da9479 /powerlevel9k.zsh-theme | |
parent | 85fd338d36d6b3558b174efe54576734cb3c0f40 (diff) | |
parent | f9957ca5592df0ab992d3750e18ee6f61b3e3002 (diff) |
Merge pull request #143 from dritter/segment_deprecation_helpers
Added segment deprecation helper
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 0707276d..cdcb9a96 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 + # Display a warning if deprecated segments are in use. + typeset -AH deprecated_segments + # old => new + deprecated_segments=( + 'longstatus' 'status' + ) + print_deprecation_warning deprecated_segments + setopt prompt_subst setopt LOCAL_OPTIONS |