Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.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