Skip to content

Instantly share code, notes, and snippets.

@schwarzmx
Last active December 11, 2015 23:18
Show Gist options
  • Save schwarzmx/4675842 to your computer and use it in GitHub Desktop.
Save schwarzmx/4675842 to your computer and use it in GitHub Desktop.
Simple .bash_profile for MacOS
# customized prompt
export PS1="\[\e[1;30m\]\u\[\e[1;32m\]:\[\e[34m\]\W \[\e[1;31m\]\$ \[\e[0m\]"
# aliases
alias ll="ls -lhG"
alias la="ls -lahG"
alias tree="tree -hlC"
# bash completion stuff
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# ant coloring: taken from http://martinadamek.com/2012/02/24/ant-with-colors-in-os-x-terminal/
ant () { command ant -logger org.apache.tools.ant.listener.AnsiColorLogger "$@" | sed 's/2;//g' ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment