aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-04-16 11:19:19 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-04-16 11:22:14 +0200
commit3ec21e09db49713fcdfa61815ab15d9a75a8591c (patch)
treec0798d50ac9f55c24090951a03c1ca6c1826ac0d
parent056d22881536012d6473968ab95caf31fe32ad0a (diff)
downloaddotfiles-3ec21e09db49713fcdfa61815ab15d9a75a8591c.tar.xz
zsh/aliases: Add 5c for cding to a 5m code directory
-rw-r--r--zsh/aliases.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh
index e3058eb..b828a71 100644
--- a/zsh/aliases.zsh
+++ b/zsh/aliases.zsh
@@ -93,3 +93,11 @@ function 5v {
fi
fi
}
+
+function 5c {
+ if [[ -n "$1" ]]; then
+ cd "$HOME"/5/code/"$1"
+ else
+ cd "$HOME"/5/code
+ fi
+}