Sorry, I've experienced trouble with the copy/pasting of the script, should read, #!/bin/sh prompt=Liste action=cd index=`ls -d */ -d .*/ -U | dmenu -i -p "$prompt: $PWD"` [ -z $index ] if [ $? = 1 ]; then $action $index && lsd ; else actions fi |