Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added color to host to diferentiate from OS X

  • Loading branch information...
commit 37500697a979692fa13b2160e8595b2e6e5b1c55 1 parent 3a31899
Bogdan Gaza authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 bashrc
View
4 bashrc
@@ -57,8 +57,10 @@ if [ -x /usr/bin/dircolors ]; then
fi
export LSCOLORS='Exfxcxdxbxegedabagacad'
+color_prompt="yes"
+
if [ "$color_prompt" = yes ]; then
- PS1="\[$(tput bold)\]\[$(tput setaf 2)\]\u@\H \[$(tput setaf 4)\]\w\[$(tput setaf 3)\] \$(parse_git_branch)\[$(tput sgr0)\]\n\[$(tput bold)\]\[$(tput setaf 1)\] \[$(tput sgr0)\]> "
+ PS1="\[$(tput bold)\]\[$(tput setaf 2)\]\u@\[$(tput setaf 5)\]\H \[$(tput setaf 4)\]\w\[$(tput setaf 3)\] \$(parse_git_branch)\[$(tput sgr0)\]\n\[$(tput bold)\]\[$(tput setaf 1)\]\[$(tput sgr0)\]> "
else
PS1="\u@\H \w \$(parse_git_branch)\n> "
fi
Please sign in to comment.
Something went wrong with that request. Please try again.