From 9a2e5ea101e84c3a3bf6ccab484d391e4762aeee Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 21 Nov 2023 00:08:12 +0100 Subject: osel: Simplify implementation --- .local/bin/osel | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.local/bin/osel b/.local/bin/osel index e576a7b..fc9713c 100755 --- a/.local/bin/osel +++ b/.local/bin/osel @@ -1,5 +1,7 @@ #!/bin/sh +OSEL_GUI_FLAGS="-d --log-level=warning $OSEL_GUI_FLAGS" + index() { if [ -t 2 ] @@ -8,7 +10,7 @@ index() | eval fzf --with-nth=2 $OSEL_TERM_FLAGS \ | cut -f1 -d' ' else - eval fuzzel -d --index $OSEL_GUI_FLAGS + eval fuzzel $OSEL_GUI_FLAGS fi } @@ -18,7 +20,7 @@ normal() then eval fzf $OSEL_TERM_FLAGS else - eval fuzzel -d $OSEL_GUI_FLAGS + eval fuzzel $OSEL_GUI_FLAGS fi } -- cgit v1.2.3