m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

fzf as dmenu replacement - better cleanup after run

MahouShoujoMivutilde
2020-02-24 20:20:08 +03:00
parent 26f6349fd3
commit 8d61e430db

@@ -1426,11 +1426,10 @@ chmod 600 $input $output
st -c fzfmenu -n fzfmenu -e sh -c "cat $input | fzf | tee $output" & disown st -c fzfmenu -n fzfmenu -e sh -c "cat $input | fzf | tee $output" & disown
# handle ctrl+c outside child terminal window # handle ctrl+c outside child terminal window
trap "kill $! 2>/dev/null" EXIT trap "kill $! 2>/dev/null; rm -f $input $output" EXIT
cat > $input cat > $input
cat $output cat $output
rm -f $input $output
``` ```
Don't forget to add a float/center rule for `fzfmenu` class/name to your wm's config. Don't forget to add a float/center rule for `fzfmenu` class/name to your wm's config.