mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge branch 'master' into dritter/os_detection
This commit is contained in:
commit
5a6b6ef604
2 changed files with 25 additions and 9 deletions
19
README.md
19
README.md
|
@ -50,6 +50,7 @@ this theme focus on three primary goals:
|
|||
- [Special Segment Colors](#special-segment-colors)
|
||||
- [Troubleshooting](#troubleshooting)
|
||||
- [Gaps Between Segments](#gaps-between-segments)
|
||||
- [Segment Colors are Wrong](#segment-colors-are-wrong)
|
||||
- [Meta](#meta)
|
||||
- [Kudos](#kudos)
|
||||
- [Developing](#developing)
|
||||
|
@ -276,11 +277,18 @@ to a certain length:
|
|||
#### The 'time' segment
|
||||
|
||||
By default the time is show in 'H:M:S' format. If you want to change it,
|
||||
just set another format in your `~/.zshrc`:
|
||||
just set another format in your `~/.zshrc`. As an example, this is a reversed
|
||||
time format:
|
||||
|
||||
# Reversed time format
|
||||
POWERLEVEL9K_TIME_FORMAT='%D{%S:%M:%H}'
|
||||
|
||||
If you are using an "Awesome Powerline Font", you can add a time symbol to this
|
||||
segment, as well:
|
||||
|
||||
# Output time, date, and a symbol from the "Awesome Powerline Font" set
|
||||
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S \uE868 %d.%m.%y}"
|
||||
|
||||
#### Unit Test Ratios
|
||||
|
||||
The `symfony2_tests` and `rspec_tests` segments both show a ratio of "real"
|
||||
|
@ -436,6 +444,15 @@ Thankfully, this is easy to fix. This happens if you have successfully installed
|
|||
Powerline fonts, but did not make a Powerline font the default font in your
|
||||
terminal emulator (e.g., 'terminator', 'gnome-terminal', 'konsole', etc.,).
|
||||
|
||||
#### Segment Colors are Wrong
|
||||
|
||||
If the color display within your terminal seems off, it's possible you are using
|
||||
a reduced color set. You can check this by invoking `echotc Co` in your
|
||||
terminal, which should yield `256`. If you see something different, try setting
|
||||
`xterm-256color` in your `~/.zshrc`:
|
||||
|
||||
TERM=xterm-256color
|
||||
|
||||
### Meta
|
||||
|
||||
#### Kudos
|
||||
|
|
|
@ -673,7 +673,6 @@ $POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX"
|
|||
RPROMPT_SUFFIX=''
|
||||
fi
|
||||
RPROMPT=$RPROMPT_PREFIX"%{%f%b%k%}"'$(build_right_prompt)'"%{$reset_color%}"$RPROMPT_SUFFIX
|
||||
|
||||
}
|
||||
|
||||
powerlevel9k_init "$@"
|
||||
|
|
Loading…
Reference in a new issue