summaryrefslogtreecommitdiffstats
path: root/zsh/functions/shorten-dir
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/functions/shorten-dir')
-rw-r--r--zsh/functions/shorten-dir6
1 files changed, 0 insertions, 6 deletions
diff --git a/zsh/functions/shorten-dir b/zsh/functions/shorten-dir
deleted file mode 100644
index a630971..0000000
--- a/zsh/functions/shorten-dir
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- mode: sh; -*-
-autoload -U regexp-replace
-
-local curdir=$1
-regexp-replace curdir '(\.?[^./])[^/]+/' '$match/'
-echo $curdir