From 3ec21e09db49713fcdfa61815ab15d9a75a8591c Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 16 Apr 2015 11:19:19 +0200 Subject: zsh/aliases: Add 5c for cding to a 5m code directory --- zsh/aliases.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +} -- cgit v1.2.3-70-g09d2