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
@@ -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.
|
||||||
Reference in New Issue
Block a user