aboutsummaryrefslogtreecommitdiff
path: root/bin/dmenu_z
blob: bfe7bbbb064edda16177f9b698d68e8000955bae (plain)
1
2
3
4
5
6
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