Add peco plugin

This commit is contained in:
Alex Farrell 2014-07-29 10:38:02 +02:00
parent 4aeb4ac517
commit 06086ca17a
3 changed files with 18 additions and 0 deletions

View File

@ -14,6 +14,7 @@
* __ndenv__ - helpers for [another node.js version manager](https://github.com/riywo/ndenv)
* __node__ - adds locally installed NodeJS npm binary executable modules to the path
* __percol__ - browse your fish history with [percol](https://github.com/mooz/percol)
* __peco__ - browse your fish history with [peco](https://github.com/peco/peco)
* __php__ - manage phphttp server
* __plenv__ - [plenv](https://github.com/tokuhirom/plenv) perl binary manager integration
* __pyenv__ - [Simple Python Version Management](https://github.com/yyuu/pyenv) integration

9
plugins/peco/README Normal file
View File

@ -0,0 +1,9 @@
Based directly on the percol plugin.
Please bind peco_select_history in your favorite key.
If you'd like to bind CTRL+R
function fish_user_key_bindings
bind \cr peco_select_history
end

View File

@ -0,0 +1,8 @@
function peco_select_history
history|peco|read foo
if [ $foo ]
commandline $foo
else
commandline ''
end
end