summaryrefslogtreecommitdiff
path: root/home/.selfconfigs/zsh/functions/cdl
diff options
context:
space:
mode:
Diffstat (limited to 'home/.selfconfigs/zsh/functions/cdl')
-rw-r--r--home/.selfconfigs/zsh/functions/cdl8
1 files changed, 8 insertions, 0 deletions
diff --git a/home/.selfconfigs/zsh/functions/cdl b/home/.selfconfigs/zsh/functions/cdl
new file mode 100644
index 0000000..d11c086
--- /dev/null
+++ b/home/.selfconfigs/zsh/functions/cdl
@@ -0,0 +1,8 @@
+function cdl()
+{
+ if [ $# == 0 ] || [ ! -L $1 ]; then
+ echo usage: cdl \[LINK\]
+ else
+ cd $1(:A:h)
+ fi
+}