Skip to content

Instantly share code, notes, and snippets.

@lukearmstrong
Created June 11, 2013 10:27
Show Gist options
  • Save lukearmstrong/5755898 to your computer and use it in GitHub Desktop.
Save lukearmstrong/5755898 to your computer and use it in GitHub Desktop.
Mac OSX Terminal
# auto completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# coloured terminal
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# list all files
alias ll='ls -ahl'
# go to root of current hg repo
alias hgr='cd $(hg root)'
# go to root of current git repo
alias gitr='cd $(git rev-parse --show-toplevel)'
# better than grep
alias ack='ack --pager="less -R"'
# Laravel 4: artisan
alias artisan='./artisan'
# Default Prompt
#export PS1="\h:\W \u\$"
# Custom Prompt
export PS1="\[\033[0;32m\]\w $ \[\033[0m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment