mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 11:43:16 +08:00
split percol.load into README and percol_select_history.fish
This commit is contained in:
parent
f4255727e0
commit
00a2cef9c6
7
plugins/percol/README
Normal file
7
plugins/percol/README
Normal file
|
@ -0,0 +1,7 @@
|
|||
Please bind percol_select_history in your favorite key.
|
||||
|
||||
If you'd like to bind CTRL+R
|
||||
|
||||
function fish_user_key_bindings
|
||||
bind \cr percol_select_history
|
||||
end
|
8
plugins/percol/percol_select_history.fish
Normal file
8
plugins/percol/percol_select_history.fish
Normal file
|
@ -0,0 +1,8 @@
|
|||
function percol_select_history
|
||||
history|percol|read foo
|
||||
if [ $foo ]
|
||||
commandline $foo
|
||||
else
|
||||
commandline ''
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user