Skip to content

Instantly share code, notes, and snippets.

@anthonycarminati
Last active February 23, 2017 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonycarminati/be572e59e100aff1e523 to your computer and use it in GitHub Desktop.
Save anthonycarminati/be572e59e100aff1e523 to your computer and use it in GitHub Desktop.
Add this script to .bash_profile on mac or .bashrc on linux to color code the various blocks.
########################################
## TERMINAL CUSTOMIZATION
########################################
function prompt {
local BLACK="\[\033[0;30m\]"
local BLACKBOLD="\[\033[1;30m\]"
local RED="\[\033[0;31m\]"
local REDBOLD="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local GREENBOLD="\[\033[1;32m\]"
local YELLOW="\[\033[0;33m\]"
local YELLOWBOLD="\[\033[1;33m\]"
local BLUE="\[\033[0;34m\]"
local BLUEBOLD="\[\033[1;34m\]"
local PURPLE="\[\033[0;35m\]"
local PURPLEBOLD="\[\033[1;35m\]"
local CYAN="\[\033[0;36m\]"
local CYANBOLD="\[\033[1;36m\]"
local WHITE="\[\033[0;37m\]"
local WHITEBOLD="\[\033[1;37m\]"
local RESETCOLOR="\[\e[00m\]"
export PS1="\n$BLUE[\#] $RED\u$GREEN \w\n$CYAN → $RESETCOLOR"
export PS2="| → $RESETCOLOR"
}
prompt
########################################
## HELPFUL ALIASES
########################################
alias ll='ls -1'
alias la='ls -la'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment