Skip to content

Instantly share code, notes, and snippets.

@iorionda
Last active November 9, 2015 09:31
Show Gist options
  • Save iorionda/463459668a1810c661f7 to your computer and use it in GitHub Desktop.
Save iorionda/463459668a1810c661f7 to your computer and use it in GitHub Desktop.
履歴
function peco-select-history
set -l query (commandline)
if [ -n $query ]
history | tail -r | peco --query $query | read line
else
history | tail -r | peco | read line
end
if [ $line ]
commandline $line
else
commandline -f repaint
end
end
@iorionda
Copy link
Author

iorionda commented Nov 9, 2015

bind \cr peco-select-history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment