fish: Add alias to fuzzy search RFC documents
This commit is contained in:
parent
591077efb4
commit
99482de9a4
1 changed files with 7 additions and 0 deletions
|
@ -406,6 +406,13 @@ function pk --description "Fuzzy find a process to kill"
|
|||
kill -SIGKILL $proc
|
||||
end
|
||||
|
||||
function rfc --description "Search for string in RFC documents and open"
|
||||
if test -e ~/rfc
|
||||
rg --files-with-matches $argv ~/rfc | fzf | read -l result
|
||||
nvim -R $result
|
||||
end
|
||||
end
|
||||
|
||||
fzf_key_bindings
|
||||
|
||||
starship init fish | source
|
||||
|
|
Loading…
Reference in a new issue