Created
December 2, 2013 19:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# \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