commit 57a764e79d4769c82d2da01b496189b1ac4fcb2c
parent 385ac0c13d10a16a224f55f70bb6fc1ce43380cb
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 18 Apr 2018 12:57:53 -0400
Overload cd function for ... shortcut
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/links/.zshrc b/links/.zshrc
@@ -230,6 +230,7 @@ alias youtube-dl='youtube-dl --format mp4'
alias html="ansifilter -H -f"
alias copyhtml="html | pbcopy"
alias w3m="w3m -B"
+function cd(){ [[ "$1" == "..." ]] && builtin cd ../.. || builtin cd $@; }
# enable color support of ls and also add handy aliases
if [[ "$ARCH" != 'Darwin' ]]; then