summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-22 15:43:38 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-22 15:43:38 +0200
commit1985d3e768346ea17645c308296f056b0ebe6414 (patch)
treed7324d0903843883452e29effbfff2386894d39f
parent32afed113eac536c7c2a671e803e9891b4898561 (diff)
osel: Add ‘osel’ to create option selection menus
-rwxr-xr-x.local/bin/osel5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/osel b/.local/bin/osel
new file mode 100755
index 0000000..7087dc3
--- /dev/null
+++ b/.local/bin/osel
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+: ${OSEL_GUI:=wofi -d}
+: ${OSEL_TERM:=fzf}
+if [ -t 2 ]; then $OSEL_TERM; else $OSEL_GUI; fi