Fixed a bug with unwanted spaces in prompt

This commit is contained in:
Christian Busch 2016-04-16 21:05:07 +02:00
parent e48fea037b
commit 891146d27b
3 changed files with 10 additions and 9 deletions

View File

@ -121,4 +121,4 @@ set -g message-attr bold
set -g message-fg colour232
set -g message-bg colour166
# }
# }

View File

@ -10,4 +10,5 @@ setopt long_list_jobs
## pager
export PAGER=less
export LC_CTYPE=$LANG
export LC_CTYPE=$LANG
export LC_ALL=de_DE.UTF-8

View File

@ -4,18 +4,18 @@ promptinit
# Change user name color to red if logged in as root
if [[ $UID == 0 || $EUID == 0 ]]; then
PROMPT='$fg[red]%n@%m '
PROMPT='%F{red}%n@%m%f '
else
PROMPT='$fg[blue]%n@%m '
PROMPT='%F{blue}%n@%m%f '
fi
PROMPT+='$fg[yellow]%~ '
PROMPT+='%F{yellow}%~%f '
# Change green arrows (⇣⇡) if cnnection is via ssh
# Change green arrows (⇣⇡) if connection is via ssh
if [[ "${SSH_TTY}" ]]; then
PROMPT+="$fg[green]⇣⇡ $fg[white]〉";
PROMPT+="%F{green}⇣⇡%f %F{white}〉%f";
else
PROMPT+="$fg[white]〉";
PROMPT+="%F{white}〉%f";
fi;
PROMPT+='%{$reset_color%}'
PROMPT+='%{$reset_color%}'