Changed PS1 to use hostname on SSH connection

This commit is contained in:
2015-05-10 23:45:51 -04:00
parent 78ccc9f8d5
commit 89cb3fbdc3

View File

@@ -19,7 +19,7 @@ export LESSOPEN='|/usr/local/bin/lesspipe.sh %s'
# Prompt differs if SSH'ed or not
if [ -n "$SSH_CLIENT" ]; then
PS1='\n╭\[\e[1;33m\]$(__git_ps1 "(%s)")\[\e[1;32m\][\w]\[\033[0m\]\n╰\[\033[1;36m\]\u@buttstuff\[\033[1;33m\]\$ \[\033[0m\]'
PS1='\n╭\[\e[1;33m\]$(__git_ps1 "(%s)")\[\e[1;32m\][\w]\[\033[0m\]\n╰\[\033[1;36m\]\u@\h\[\033[1;33m\]\$ \[\033[0m\]'
else
PS1='\n╭\[\e[1;33m\]$(__git_ps1 "(%s)")\[\033[32m\][\w]\[\033[0m\]\n╰\[\033[1;36m\]\u\[\033[1;33m\]\$ \[\033[0m\]'
fi