# Simplify calls to grep.
alias -g G='| grep'
+# Automatically use unified diffs.
+alias diff='diff -u'
+
+# Display all files and use human readable sizes.
+alias du='du -sh'
+
# Multiple files given to Vim are opened in tabs.
alias vim='vim -p'
# Shortcuts for Vim.
# Exit binding like in Vim.
alias :q='exit'
+# Edit the mercurial patch queue series file for the current mercurial
+# repository in Vim. Also change Vim's pwd to the patches directory so other
+# patches can easily be opened.
+alias vqs='vim -c "cd $(hg root)/.hg/patches/" "$(hg root)/.hg/patches/series"'
+
+# Make going up directories simple.
+alias -g ...='../..'
+alias -g ....='../../..'
# Improved ls which displays the files in columns (-C), visualises directories,
# links and other special files (-F) and pages everything through less (L).