Add username@hostname back to PS1

This commit is contained in:
2018-01-30 20:58:05 -08:00
parent df676ccb77
commit bddf77b0b5

2
.zshrc
View File

@@ -26,7 +26,7 @@ export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_SHOWCOLORHINTS=1
PS1=$'\n╭%{$fg[yellow]%}$(__git_ps1 "(%s)")%{$fg[green]%}[%~]%{$reset_color%}\n╰%# '
PS1=$'\n╭%{$fg[yellow]%}$(__git_ps1 "(%s)")%{$fg[green]%}[%~]%{$reset_color%}\n╰%{$fg[cyan]%}%n%{$fg[yellow]%}@%{%F{214}%}%m%f%{$reset_color%}%# '
# set window title to working directory
precmd () { print -Pn "\e]0;%~\a" }