From d8c55a259211cbf325153a1eaed0575d27575c17 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sat, 29 Aug 2015 14:36:33 +0200 Subject: [PATCH] Added documentation and a little helper function for icon customization. --- README.md | 3 +++ powerlevel9k.zsh-theme | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 187a67b4..546e9011 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 56ecb611..ab532cf7 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -59,6 +59,12 @@ function print_icon() { fi } +get_icon_names() { + for key in "${(@k)icons}"; do + echo "POWERLEVEL9K_$key: ${icons[$key]}" + done +} + ################################################################ # Icons ################################################################