diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-11-17 20:34:18 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-11-17 20:34:18 +0300 |
commit | f9957ca5592df0ab992d3750e18ee6f61b3e3002 (patch) | |
tree | 90e714ffe02e2ce0b82bf431b11f590515068a4b /functions | |
parent | ce7b99cdaf4459afb7d7043cae25e4f02489ba87 (diff) |
Used typeset to define the local array. This does the trick on linux.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/utilities.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 3c6a4d49..f855caf5 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -124,7 +124,8 @@ fi # deprecated segments as keys, the values contain the new # segment names. print_deprecation_warning() { - local -A raw_deprecated_segments=(${(kvP)1}) + typeset -AH raw_deprecated_segments + raw_deprecated_segments=(${(kvP@)1}) for key in ${(@k)raw_deprecated_segments}; do if [[ -n "${POWERLEVEL9K_LEFT_PROMPT_ELEMENTS[(r)$key]}" ]] || [[ -n "${POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS[(r)$key]}" ]]; then |