aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/dmenu_z7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/dmenu_z b/bin/dmenu_z
new file mode 100755
index 0000000..bfe7bbb
--- /dev/null
+++ b/bin/dmenu_z
@@ -0,0 +1,7 @@
+#!/bin/mksh
+
+. /home/duncan/repos/github.com/Duncaen/dotfiles/z/z.sh
+ret=$(z -l | sort -nr | awk '{print $2}' | dmenu -l 10)
+if [ -n "$ret" -a -d "$ret" ]; then
+ cd "$ret" ; st
+fi