1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 09:50:06 +00:00

Added documentation and a little helper function for icon customization.

This commit is contained in:
Dominik Ritter 2015-08-29 14:36:33 +02:00
parent bf9ef6acf1
commit d8c55a2592
2 changed files with 9 additions and 0 deletions

View file

@ -414,6 +414,9 @@ This special prompt does not work on the right side, as it would be too long,
and ZSH hides it automatically. Also have in mind, that the output depends on
your `POWERLEVEL9K_MODE` settings.
You can change any icon by setting a environment variable. To get a full list
of icons just type `get_icon_names` in your terminal.
#### Segment Color Customization
For each segment in your prompt, you can specify a foreground and background

View file

@ -59,6 +59,12 @@ function print_icon() {
fi
}
get_icon_names() {
for key in "${(@k)icons}"; do
echo "POWERLEVEL9K_$key: ${icons[$key]}"
done
}
################################################################
# Icons
################################################################