mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 12:55:17 +00:00
[fish] Remove temporary file after use
This commit is contained in:
parent
809d465de5
commit
b3efccca81
4
install
4
install
@ -263,12 +263,14 @@ function fzf_key_bindings
|
|||||||
else
|
else
|
||||||
__fzf_select > $TMPDIR/fzf.result
|
__fzf_select > $TMPDIR/fzf.result
|
||||||
and commandline -i (cat $TMPDIR/fzf.result)
|
and commandline -i (cat $TMPDIR/fzf.result)
|
||||||
|
rm -f $TMPDIR/fzf.result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fzf_ctrl_t_tmux
|
function __fzf_ctrl_t_tmux
|
||||||
__fzf_select > $TMPDIR/fzf.result
|
__fzf_select > $TMPDIR/fzf.result
|
||||||
and tmux send-keys -t $argv[1] (cat $TMPDIR/fzf.result)
|
and tmux send-keys -t $argv[1] (cat $TMPDIR/fzf.result)
|
||||||
|
rm -f $TMPDIR/fzf.result
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fzf_ctrl_r
|
function __fzf_ctrl_r
|
||||||
@ -277,6 +279,7 @@ function fzf_key_bindings
|
|||||||
else
|
else
|
||||||
commandline -f repaint
|
commandline -f repaint
|
||||||
end
|
end
|
||||||
|
rm -f $TMPDIR/fzf.result
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fzf_alt_c
|
function __fzf_alt_c
|
||||||
@ -285,6 +288,7 @@ function fzf_key_bindings
|
|||||||
cd (cat $TMPDIR/fzf.result)
|
cd (cat $TMPDIR/fzf.result)
|
||||||
end
|
end
|
||||||
commandline -f repaint
|
commandline -f repaint
|
||||||
|
rm -f $TMPDIR/fzf.result
|
||||||
end
|
end
|
||||||
|
|
||||||
function __fzf_tmux_height
|
function __fzf_tmux_height
|
||||||
|
Loading…
Reference in New Issue
Block a user