From 5c9b6099519be862522572f0c5c03aafdf690cec Mon Sep 17 00:00:00 2001 From: Akelge Date: Fri, 28 Nov 2014 13:11:14 +0000 Subject: [PATCH] Clean up of nice prompt --- zsh/zsh.d/prompts/prompt_nice_setup | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/zsh/zsh.d/prompts/prompt_nice_setup b/zsh/zsh.d/prompts/prompt_nice_setup index fa0f71f..93698a9 100644 --- a/zsh/zsh.d/prompts/prompt_nice_setup +++ b/zsh/zsh.d/prompts/prompt_nice_setup @@ -1,17 +1,16 @@ + function prompt_nice_setup { if `fancyTerm`; then - W="::: %n at %m in %. :::" - I="%m::%." - # L="$FX[bold]$FX[italic]$BG[111]$FG[239]@%m::%2~ $BG[000] -# $FG[228]%#$FX[reset] " -L='$FX[bold]$FX[italic]$BG[062]@%m::%2~$BG[000] -$(repo_char)$FG[220]%#$FX[reset] ' -PS1="%{]2;$W%}%{]1;$I%}$L" - unset W I L + title="::: %n at %m in %. :::" + prompt_='$FX[bold]$FX[italic]$BG[062]@%m::%2~$FX[reset] +$FX[bold]$(repo_char)$FG[220]%#$FX[reset] ' + + PS1="%{]2;$title%}$prompt_" + unset title prompt_ else # We are not on xterminal - PS1="%B%K{blue}%F{white}[%l] %n@%m:%~ %f%k%F{yellow}%# $(repo_char)%f%b " + PS1='%B%K{blue}%F{white}[%l] $(repo_char)%n@%m:%~ %f%k%F{yellow}%#%f%b ' fi }