1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 19:41:08 +01:00

feat(script): wrapper function

This commit is contained in:
Kierán Meinhardt
2020-04-15 00:10:30 +02:00
parent 4b5f5442f7
commit 99d11d94b9
7 changed files with 58 additions and 64 deletions

View File

@@ -10,7 +10,9 @@ mkfifo "$output"
chmod 600 "$input" "$output"
# it's better to use st here (starts a lot faster than pretty much everything else)
st -c fzfmenu -n fzfmenu -g 85x15 -e sh -c "cat $input | fzf $* | tee $output" & disown
st -c fzfmenu -n fzfmenu -g 85x10 \
-e dash \
-c "cat $input | fzf --print-query $* | tee $output" & disown
# handle ctrl+c outside child terminal window
trap 'kill $! 2>/dev/null; rm -f $input $output' EXIT