aboutsummaryrefslogtreecommitdiff
path: root/functions/icons.zsh
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2017-03-19 19:23:48 +0300
committerDominik Ritter <dritter03@googlemail.com>2017-03-19 19:23:48 +0300
commite42cb50052c8f7f4d56b4842270e5104f5f82021 (patch)
tree70671d8dadded89d4eb64720f91cea13cdbe473a /functions/icons.zsh
parentec50da4ac5c34046fea46d1e9eb0bebbfd21d01d (diff)
Sort the output of `get_icon_names` alphabetically
Diffstat (limited to 'functions/icons.zsh')
-rw-r--r--functions/icons.zsh3
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
}