fish: Add alias to fuzzy search RFC documents

This commit is contained in:
Sanchayan Maity 2021-12-10 15:21:49 +05:30
parent 591077efb4
commit 99482de9a4
1 changed files with 7 additions and 0 deletions

View File

@ -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