Skip to content

Instantly share code, notes, and snippets.

@bittner
Created July 9, 2015 11:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bittner/916ff3c1ddcf29f947ae to your computer and use it in GitHub Desktop.
Save bittner/916ff3c1ddcf29f947ae to your computer and use it in GitHub Desktop.
.bash_aliases for Mac
# .bash_aliases
# Source: http://techie-notebook.blogspot.ch/2012/04/making-your-terminal-look-pretty-on-mac.html
# enables color in the terminal bash shell
export CLICOLOR=1
# sets up the color scheme for list
export LSCOLORS=gxfxcxdxbxegedabagacad
# enables color for iTerm
export TERM=xterm-color
# Color Prompt
#export PS1="\[\e[36;1m\]\u@\[\e[32;1m\]\w> \[\e[0m\]"
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
# sets up proper alias commands when called
alias ls='ls -G'
alias la='ls -hl'
alias ll='ls -lAF'
# Git aliases for convenience
alias gitadd='git add -v'
alias gitstaged='git diff --staged'
alias gitpullall='for BRANCH in live stage develop; do git checkout $BRANCH && git pull; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment