mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
Used typeset to define the local array. This does the trick on linux.
This commit is contained in:
parent
ce7b99cdaf
commit
f9957ca559
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue