properly source local zshrc, remove username@host from PS1

This commit is contained in:
2017-08-24 15:49:08 -07:00
parent 6a0029ede3
commit 208dcd129a

6
.zshrc
View File

@@ -2,9 +2,9 @@ autoload -U colors && colors
source ~/.git-prompt.sh
if [[ -f .zshrc_local ]]
if [[ -f ~/.zshrc_local ]]
then
source .zshrc_local
source ~/.zshrc_local
else
fi
@@ -25,7 +25,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╰%{$fg[cyan]%}%n%{$fg[yellow]%}@%{%F{214}%}%m%f%{$reset_color%}%# '
PS1=$'\n╭%{$fg[yellow]%}$(__git_ps1 "(%s)")%{$fg[green]%}[%~]%{$reset_color%}\n╰%# '
# set window title to working directory
precmd () { print -Pn "\e]0;%~\a" }