Skip to content

Instantly share code, notes, and snippets.

@mwilliammyers
Created June 1, 2018 01:42
Show Gist options
  • Save mwilliammyers/943f8fcd19ebb81771f155b82dcb0b61 to your computer and use it in GitHub Desktop.
Save mwilliammyers/943f8fcd19ebb81771f155b82dcb0b61 to your computer and use it in GitHub Desktop.
reverse fishshell history search using skim
# bind \cr '__sk_reverse_isearch'
function __sk_reverse_isearch
history -z | sk --read0 --print0 --tiebreak=index -q (commandline) | read -lz result
and commandline -r $result
#and commandline -f repaint
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment