summaryrefslogtreecommitdiff
path: root/themes/pygmalion.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-05-10 20:06:24 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-05-10 20:06:24 +0200
commitc52441b624c0b1fa075bc6110032bd4e75311909 (patch)
tree92ff70945e582c8ef2073b6910dfb1476b5538a5 /themes/pygmalion.zsh-theme
parent08cc808d717c3cf61118dd47ba451e22c984d3cf (diff)
downloadzsh-c52441b624c0b1fa075bc6110032bd4e75311909.tar.gz
zsh-c52441b624c0b1fa075bc6110032bd4e75311909.tar.bz2
zsh-c52441b624c0b1fa075bc6110032bd4e75311909.zip
pygmalion: revert multiline prompt change
Fixes #2317 Closes #2321
Diffstat (limited to 'themes/pygmalion.zsh-theme')
-rw-r--r--themes/pygmalion.zsh-theme7
1 files changed, 1 insertions, 6 deletions
diff --git a/themes/pygmalion.zsh-theme b/themes/pygmalion.zsh-theme
index cd773e4a4..bd58db5f6 100644
--- a/themes/pygmalion.zsh-theme
+++ b/themes/pygmalion.zsh-theme
@@ -22,12 +22,7 @@ prompt_pygmalion_precmd(){
local exp_nocolor="$(print -P \"$base_prompt_nocolor$gitinfo_nocolor$post_prompt_nocolor\")"
local prompt_length=${#exp_nocolor}
- local nl=""
-
- if [[ $prompt_length -gt 40 ]]; then
- nl=$'\n%{\r%}';
- fi
- PROMPT="$base_prompt$gitinfo$nl$post_prompt"
+ PROMPT="${base_prompt}${gitinfo}${post_prompt}"
}
prompt_setup_pygmalion