summaryrefslogtreecommitdiff
path: root/.local/bin/osel
blob: c289b196980baa5a150eed7e0964e0392bf8672a (plain) (blame)
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"