diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2017-03-19 19:23:48 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2017-03-19 19:23:48 +0300 |
commit | e42cb50052c8f7f4d56b4842270e5104f5f82021 (patch) | |
tree | 70671d8dadded89d4eb64720f91cea13cdbe473a /functions/icons.zsh | |
parent | ec50da4ac5c34046fea46d1e9eb0bebbfd21d01d (diff) |
Sort the output of `get_icon_names` alphabetically
Diffstat (limited to 'functions/icons.zsh')
-rw-r--r-- | functions/icons.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh index 26412543..627d0cef 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -301,7 +301,8 @@ function print_icon() { } get_icon_names() { - for key in ${(@k)icons}; do + # Iterate over a ordered list of keys of the icons array + for key in ${(@kon)icons}; do echo "POWERLEVEL9K_$key: ${icons[$key]}" done } |