Skip to content

Instantly share code, notes, and snippets.

@louisswarren louisswarren/openmenu.sh
Last active Sep 2, 2019

Embed
What would you like to do?
Dmenu is amazing
#!/bin/sh
cd ~
files=$(find * -not -path "*/.git/*" -not -name "*.agdai")
choice=$(echo "$files" | dmenu -i -p "xdg-open" $@)
xdg-open "$choice"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.