Created
May 24, 2020 11:37
-
-
Save aluxian/c4b6158afeffc5b020a5a1ecb549a9fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fzf_history_reverse_search --description 'Reverse search the command history' | |
history -z | fzf --read0 --print0 --height 50% --tiebreak=index --bind=ctrl-r:toggle-sort --no-multi --query (commandline | string collect) | read -lz result | |
and commandline -- $result | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment