1 2 3 4 5 6
#!/bin/sh -e file=$(find "$HOME"/.local/bin -type f | dmenu -i -l 20 -m 0) bsdsetsid emacsclient -c "$file" kill -9 "$(ps -p $$ -oppid=)" exit