mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-22 10:52:10 +08:00
[split] Move peco plugin to oh-my-fish/plugin-peco
https://github.com/oh-my-fish/plugin-peco
This commit is contained in:
parent
3cb0cc4334
commit
2b14f26f2d
@ -1,13 +0,0 @@
|
||||
peco
|
||||
----
|
||||
|
||||
Based directly on the percol plugin.
|
||||
|
||||
Please bind peco_select_history to your favorite key.
|
||||
|
||||
If you'd like to bind CTRL+R
|
||||
```
|
||||
function fish_user_key_bindings
|
||||
bind \cr 'peco_select_history (commandline -b)'
|
||||
end
|
||||
```
|
@ -1,15 +0,0 @@
|
||||
function peco_select_history
|
||||
if test (count $argv) = 0
|
||||
set peco_flags --layout=bottom-up
|
||||
else
|
||||
set peco_flags --layout=bottom-up --query "$argv"
|
||||
end
|
||||
|
||||
history|peco $peco_flags|read foo
|
||||
|
||||
if [ $foo ]
|
||||
commandline $foo
|
||||
else
|
||||
commandline ''
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user