From 443ba5441ae63fd259b2cc755cfc98bc7d74a40d Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 8 Dec 2021 17:20:38 +0530 Subject: [PATCH] fish: Add an alias to fuzzy find a process to kill --- fish/.config/fish/config.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index af6f417..c1b8b50 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -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