From 3f4a7bcd4c389371b21d4af9e5b5dbe562094c20 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sat, 4 Apr 2015 22:38:09 +0200 Subject: [PATCH 1/2] Nicer Symbols for multiline. --- powerlevel9k.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 1662d58d..bca76fce 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -417,8 +417,8 @@ precmd() { } if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then - PROMPT='╭─%{%f%b%k%}$(build_left_prompt) -╰─ ' + PROMPT="%F{blue}↱%f%{%f%b%k%}$(build_left_prompt) +%F{blue}↳%f " else PROMPT='%{%f%b%k%}$(build_left_prompt) ' fi From cb20e0e0d95227c7dfa44392527e123fe5527f53 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Sun, 19 Jul 2015 14:57:17 +0200 Subject: [PATCH 2/2] Made Multiline-Icons customizable. --- README.md | 5 +++++ powerlevel9k.zsh-theme | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e38b04b4..54b19833 100644 --- a/README.md +++ b/README.md @@ -343,6 +343,11 @@ Here is what it looks like: ![](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 If you prefer to use "light" colors, simply set `POWERLEVEL9K_COLOR_SCHEME` diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 4f75e89b..a9105482 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -622,8 +622,11 @@ powerlevel9k_init() { add-zsh-hook precmd vcs_info 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 # 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