Skip to content

Commit

Permalink
Merge pull request ryanoasis#80 from dritter/dritter/icon_customizati…
Browse files Browse the repository at this point in the history
…on_documentation

Added documentation and a little helper function for icon customization.
  • Loading branch information
bhilburn committed Sep 5, 2015
2 parents a3b61e9 + 88abe43 commit fd191a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,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
Expand Down
6 changes: 6 additions & 0 deletions powerlevel9k.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ function getRelevantItem() {
done
}

get_icon_names() {
for key in "${(@k)icons}"; do
echo "POWERLEVEL9K_$key: ${icons[$key]}"
done
}

################################################################
# Icons
################################################################
Expand Down

0 comments on commit fd191a5

Please sign in to comment.