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
1 changed files with 5 additions and 0 deletions

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}')
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
starship init fish | source