Skip to content
Snippets Groups Projects
Commit b3efccca authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[fish] Remove temporary file after use

parent 809d465d
No related branches found
No related tags found
No related merge requests found
......@@ -263,12 +263,14 @@ function fzf_key_bindings
else
__fzf_select > $TMPDIR/fzf.result
and commandline -i (cat $TMPDIR/fzf.result)
rm -f $TMPDIR/fzf.result
end
end
function __fzf_ctrl_t_tmux
__fzf_select > $TMPDIR/fzf.result
and tmux send-keys -t $argv[1] (cat $TMPDIR/fzf.result)
rm -f $TMPDIR/fzf.result
end
function __fzf_ctrl_r
......@@ -277,6 +279,7 @@ function fzf_key_bindings
else
commandline -f repaint
end
rm -f $TMPDIR/fzf.result
end
function __fzf_alt_c
......@@ -285,6 +288,7 @@ function fzf_key_bindings
cd (cat $TMPDIR/fzf.result)
end
commandline -f repaint
rm -f $TMPDIR/fzf.result
end
function __fzf_tmux_height
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment