Skip to content

Instantly share code, notes, and snippets.

@datwright
Created August 26, 2011 03:59
Show Gist options
  • Save datwright/1172659 to your computer and use it in GitHub Desktop.
Save datwright/1172659 to your computer and use it in GitHub Desktop.
How I like my terminal prompt
function prompt {
local GRAY="\[\033[0;37m\]"
local WHITE="\[\033[1;37m\]"
local GREEN="\[\033[0;32m\]"
local CYAN="\[\033[0;36m\]"
local MAGENTA="\[\033[0;35m\]"
local RED="\[\033[0;31m\]"
local BLACK="\[\033[0;30m\]"
local YELLOW="\[\033[0;33m\]"
local BLUE="\[\033[0;34m\]"
export PS1="${MAGENTA}\u${GRAY}@${CYAN}\h${GRAY}:${GREEN}\w ${GRAY}\$ "
}
prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment