summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2015-07-19 22:23:00 +0300
committerBen Hilburn <bhilburn@gmail.com>2015-07-19 22:23:00 +0300
commit8e19cc05aa6c7d847eeea13fa08b2d2c4dff3e19 (patch)
tree13e8ce5539a2deafb64d63bb54a5464b48d29f70 /powerlevel9k.zsh-theme
parentd17fecbf81ddfc8fad682d3843b069a43dfa1c7b (diff)
parentcb20e0e0d95227c7dfa44392527e123fe5527f53 (diff)
Merge pull request #59 from dritter/dritter/multiline_improvements
Multiline icons are now customizable
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme7
1 files changed, 5 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index bef1820a..ac7d98fa 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -627,8 +627,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