Created
March 18, 2015 10:08
-
-
Save syui/58ac77119d72ec012e30 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
| fu! s:peco_zsh_history() | |
| sil! !cat ~/.zsh_history | peco | pbcopy | |
| sil! redraw! | |
| put | |
| endf | |
| com! PecoZshHistory call <SID>peco_zsh_history() | |
| nn <Plug>(PecoZshHistory) :PecoZshHistory<CR> | |
| nm <Leader>pe <Plug>(PecoZshHistory) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment