diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-16 11:19:19 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-04-16 11:22:14 +0200 |
commit | 3ec21e09db49713fcdfa61815ab15d9a75a8591c (patch) | |
tree | c0798d50ac9f55c24090951a03c1ca6c1826ac0d /zsh | |
parent | 056d22881536012d6473968ab95caf31fe32ad0a (diff) | |
download | dotfiles-3ec21e09db49713fcdfa61815ab15d9a75a8591c.tar.xz |
zsh/aliases: Add 5c for cding to a 5m code directory
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/aliases.zsh | 8 |
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 +} |