Skip to content

Instantly share code, notes, and snippets.

@datwright
Created December 2, 2013 19:23
Show Gist options
  • Save datwright/7755579 to your computer and use it in GitHub Desktop.
Save datwright/7755579 to your computer and use it in GitHub Desktop.
Customize OSX terminal. Put this in your ~/.bash_profile \u is the username \h is the current host \w is the current directory
# \u is the username
# \h is the current host
# \w is the current directory
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