1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh x="` if [ -t 2 ] then eval fzf $OSEL_TERM_FLAGS else eval wofi -d $OSEL_GUI_FLAGS fi`" [ -z "$x" ] && exit 1 printf '%s' "$x"