|
|
|
@ -44,6 +44,21 @@
|
|
|
|
|
#zstyle ':vcs_info:*+*:*' debug true
|
|
|
|
|
#set -o xtrace
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
# Utility functions
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
function print_icon() {
|
|
|
|
|
local icon_name=$1
|
|
|
|
|
local ICON_USER_VARIABLE=POWERLEVEL9K_${icon_name}
|
|
|
|
|
local USER_ICON=${(P)ICON_USER_VARIABLE}
|
|
|
|
|
if [[ -n "$USER_ICON" ]]; then
|
|
|
|
|
echo -n $USER_ICON
|
|
|
|
|
else
|
|
|
|
|
echo -n ${icons[$icon_name]}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
# Icons
|
|
|
|
|
################################################################
|
|
|
|
@ -190,17 +205,6 @@ if [[ "$OS" == 'OSX' ]]; then
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
function print_icon() {
|
|
|
|
|
local icon_name=$1
|
|
|
|
|
local ICON_USER_VARIABLE=POWERLEVEL9K_${icon_name}
|
|
|
|
|
local USER_ICON=${(P)ICON_USER_VARIABLE}
|
|
|
|
|
if [[ -n "$USER_ICON" ]]; then
|
|
|
|
|
echo -n $USER_ICON
|
|
|
|
|
else
|
|
|
|
|
echo -n ${icons[$icon_name]}
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
# color scheme
|
|
|
|
|
################################################################
|
|
|
|
|