Changed PS1 to use hostname on SSH connection
This commit is contained in:
2
.bashrc
2
.bashrc
@@ -19,7 +19,7 @@ export LESSOPEN='|/usr/local/bin/lesspipe.sh %s'
|
|||||||
|
|
||||||
# Prompt differs if SSH'ed or not
|
# Prompt differs if SSH'ed or not
|
||||||
if [ -n "$SSH_CLIENT" ]; then
|
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
|
else
|
||||||
PS1='\n╭\[\e[1;33m\]$(__git_ps1 "(%s)")\[\033[32m\][\w]\[\033[0m\]\n╰\[\033[1;36m\]\u\[\033[1;33m\]\$ \[\033[0m\]'
|
PS1='\n╭\[\e[1;33m\]$(__git_ps1 "(%s)")\[\033[32m\][\w]\[\033[0m\]\n╰\[\033[1;36m\]\u\[\033[1;33m\]\$ \[\033[0m\]'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user