mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Moved print_icon
to top in its own section "utility functions".
This commit is contained in:
parent
1005a7c6fb
commit
66877efade
1 changed files with 15 additions and 11 deletions
|
@ -44,6 +44,21 @@
|
||||||
#zstyle ':vcs_info:*+*:*' debug true
|
#zstyle ':vcs_info:*+*:*' debug true
|
||||||
#set -o xtrace
|
#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
|
# Icons
|
||||||
################################################################
|
################################################################
|
||||||
|
@ -190,17 +205,6 @@ if [[ "$OS" == 'OSX' ]]; then
|
||||||
fi
|
fi
|
||||||
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
|
# color scheme
|
||||||
################################################################
|
################################################################
|
||||||
|
|
Loading…
Reference in a new issue