mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Add peco plugin
This commit is contained in:
parent
4aeb4ac517
commit
06086ca17a
@ -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
9
plugins/peco/README
Normal 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
|
8
plugins/peco/peco_select_history.fish
Normal file
8
plugins/peco/peco_select_history.fish
Normal file
@ -0,0 +1,8 @@
|
||||
function peco_select_history
|
||||
history|peco|read foo
|
||||
if [ $foo ]
|
||||
commandline $foo
|
||||
else
|
||||
commandline ''
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user