fish: Add an alias to fuzzy find a process to kill

This commit is contained in:
Sanchayan Maity 2021-12-08 17:20:38 +05:30
parent 03a4cb93ff
commit 443ba5441a

View file

@ -401,6 +401,11 @@ function jbl --description "Select a boot to view logs"
journalctl -r -b (journalctl --list-boots | fzf --tac | awk '{print $1}') journalctl -r -b (journalctl --list-boots | fzf --tac | awk '{print $1}')
end end
function pk --description "Fuzzy find a process to kill"
set proc (ps -ef | fzf | awk '{print $2}')
kill -SIGKILL $proc
end
fzf_key_bindings fzf_key_bindings
starship init fish | source starship init fish | source