Skip to content

Instantly share code, notes, and snippets.

@GeertJohan
Created January 21, 2013 08:33
Show Gist options
  • Save GeertJohan/4584589 to your computer and use it in GitHub Desktop.
Save GeertJohan/4584589 to your computer and use it in GitHub Desktop.
PS1's
export PS1="\u\[$(tput setaf 3)\]@\[$(tput setaf 4)\]\H\[$(tput setaf 3)\]:\[$(tput setaf 6)\]\w\[$(tput setaf 3)\]\\$\[$(tput setaf 7)\]\[$(tput sgr0)\] "
#For servers:
#PROMPT_HOSTNAME=`hostname --long`
#export PS1="\u\[$(tput setaf 3)\]@\[$(tput setaf 1)\]\[$(tput smso)\]${PROMPT_HOSTNAME}\[$(tput rmso)\]\[$(tput setaf 3)\]:\[$(tput setaf 6)\]\w\[$(tput setaf 3)\]\\$\[$(tput setaf 7)\]\[$(tput sgr0)\] "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment