From d9558178e273a82c24d7062a5b61c9266449e63b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 22 Nov 2023 19:39:05 +0100 Subject: osel: Use 1 indexing --- .local/bin/osel | 5 +++-- 1 file 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 } -- cgit v1.2.3