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

Merge pull request #109 from brettanomyces/reorder_fish_history

Reverse the order of fish history
parents d89c9e94 ee433ef6
No related branches found
No related tags found
No related merge requests found
......@@ -294,8 +294,16 @@ function fzf_key_bindings
rm -f $TMPDIR/fzf.result
end
function __fzf_reverse
if which tac > /dev/null
tac $argv
else
tail -r $argv
end
end
function __fzf_ctrl_r
history | fzf +s +m > $TMPDIR/fzf.result
history | __fzf_reverse | fzf +s +m > $TMPDIR/fzf.result
and commandline (cat $TMPDIR/fzf.result)
commandline -f repaint
rm -f $TMPDIR/fzf.result
......
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