aboutsummaryrefslogtreecommitdiff
path: root/bin/dmenu_z
blob: 9affd6277485c403f30576be9f9d28d9fdb62ebc (plain)
1
2
3
4
5
6
7
#!/bin/sh

. /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