mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
commit
418cb4fc24
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
|
13
plugins/percol/percol.load
Normal file
13
plugins/percol/percol.load
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
function percol_select_history
|
||||||
|
history|percol|read foo
|
||||||
|
if [ $foo ]
|
||||||
|
commandline $foo
|
||||||
|
else
|
||||||
|
commandline ''
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# ~/.oh-my-fish/custom/*.load
|
||||||
|
# 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