1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

If host is a server, username in prompt is green

This commit is contained in:
Michiel Scholten
2014-07-15 16:45:26 +02:00
parent 81c4e8dcdb
commit 7d23bfc3b6

View File

@@ -74,8 +74,13 @@ if [ "$color_prompt" = yes ]; then
BLACK="\[\033[0m\]"
BLUE="\[\033[0;34m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
PROMPT_SYMBOL='$'
PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ "
if [ "${HOSTNAME}" = "higgs.aquariusoft.org" ] || [ "${HOSTNAME}" = "medusa" ]; then
PS1="$YELLOW\t $GREEN\u$BLACK@\h:\W$ "
else
PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$ "
fi
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$ "
#PS1="$YELLOW\t $BLUE\u$BLACK@\h:\W$(hg_ps1)$(__git_ps1)$ "
# /Michiel's colour config