From e42cb50052c8f7f4d56b4842270e5104f5f82021 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sun, 19 Mar 2017 17:23:48 +0100 Subject: [PATCH] Sort the output of `get_icon_names` alphabetically --- functions/icons.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }