aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-17 20:34:18 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-17 20:34:18 +0300
commitf9957ca5592df0ab992d3750e18ee6f61b3e3002 (patch)
tree90e714ffe02e2ce0b82bf431b11f590515068a4b /powerlevel9k.zsh-theme
parentce7b99cdaf4459afb7d7043cae25e4f02489ba87 (diff)
Used typeset to define the local array. This does the trick on linux.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 7f3af8a7..cdcb9a96 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -754,14 +754,14 @@ powerlevel9k_init() {
print -P "You should put: %F{blue}export TERM=\"xterm-256color\"%f in your \~\/.zshrc"
fi
- typeset -Ah deprecated_segments
+ # 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