mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge pull request #59 from dritter/dritter/multiline_improvements
Multiline icons are now customizable
This commit is contained in:
commit
8e19cc05aa
2 changed files with 10 additions and 2 deletions
|
@ -344,6 +344,11 @@ Here is what it looks like:
|
||||||
|
|
||||||
![](http://bhilburn.org/content/images/2015/03/double-line.png)
|
![](http://bhilburn.org/content/images/2015/03/double-line.png)
|
||||||
|
|
||||||
|
If you want other icons, you can set the following variables in your `~/.zshrc`:
|
||||||
|
|
||||||
|
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="↱"
|
||||||
|
POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="↳ "
|
||||||
|
|
||||||
#### Light Color Theme
|
#### Light Color Theme
|
||||||
|
|
||||||
If you prefer to use "light" colors, simply set `POWERLEVEL9K_COLOR_SCHEME`
|
If you prefer to use "light" colors, simply set `POWERLEVEL9K_COLOR_SCHEME`
|
||||||
|
|
|
@ -627,8 +627,11 @@ powerlevel9k_init() {
|
||||||
add-zsh-hook precmd vcs_info
|
add-zsh-hook precmd vcs_info
|
||||||
|
|
||||||
if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
|
if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
|
||||||
PROMPT="╭─%{%f%b%k%}"'$(build_left_prompt)'"
|
[[ -n $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX ]] || POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="╭─"
|
||||||
╰─ "
|
[[ -n $POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX ]] || POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="╰─ "
|
||||||
|
|
||||||
|
PROMPT="$POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX%{%f%b%k%}"'$(build_left_prompt)'"
|
||||||
|
$POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX"
|
||||||
# The right prompt should be on the same line as the first line of the left
|
# The right prompt should be on the same line as the first line of the left
|
||||||
# prompt. To do so, there is just a quite ugly workaround: Before zsh draws
|
# prompt. To do so, there is just a quite ugly workaround: Before zsh draws
|
||||||
# the RPROMPT, we advise it, to go one line up. At the end of RPROMPT, we
|
# the RPROMPT, we advise it, to go one line up. At the end of RPROMPT, we
|
||||||
|
|
Loading…
Reference in a new issue