Skip to content

Instantly share code, notes, and snippets.

@lukearmstrong
Created April 26, 2012 17:10
Show Gist options
  • Save lukearmstrong/2501041 to your computer and use it in GitHub Desktop.
Save lukearmstrong/2501041 to your computer and use it in GitHub Desktop.
.bashrc
# User specific aliases and functions
# Coloured prompt so you can find it in the wall of output
PS1='${debian_chroot:+($debian_chroot)}\[\033[02;33m\]\u@\h\[\033[01;31m\]
\w \$\[\033[00m\] '
# guess
alias ll='ls -alh'
# 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-grep --pager="less -R"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment