summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-22 19:39:05 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-22 19:39:05 +0100
commitd9558178e273a82c24d7062a5b61c9266449e63b (patch)
tree591ac7f429b8c1030a46013d6e1b7a9046f0926d /.local/bin
parent401767c9f3370752e3aa0161daedc2de415c15d4 (diff)
osel: Use 1 indexing
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/osel5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/osel b/.local/bin/osel
index fc9713c..bd22c02 100755
--- a/.local/bin/osel
+++ b/.local/bin/osel
@@ -6,11 +6,12 @@ index()
{
if [ -t 2 ]
then
- nl -nln -v0 \
+ nl -nln -v1 \
| eval fzf --with-nth=2 $OSEL_TERM_FLAGS \
| cut -f1 -d' '
else
- eval fuzzel $OSEL_GUI_FLAGS
+ eval fuzzel --index $OSEL_GUI_FLAGS \
+ | xargs expr 1 +
fi
}