diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-11-21 00:08:12 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-11-21 00:08:12 +0100 |
commit | 9a2e5ea101e84c3a3bf6ccab484d391e4762aeee (patch) | |
tree | 967efdfe7a145c280cb8406ad23fc97e476ac96b /.local | |
parent | b363c0acab4a268c01f941fa954d0b7b5049842a (diff) |
osel: Simplify implementation
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/osel | 6 |
1 files 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 } |