From 8e421c2237ade8a9ae5532c613596fc30e60466b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 3 Jul 2021 11:07:55 +0200 Subject: [PATCH] bash: functions --- .bash_functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_functions b/.bash_functions index 14af12f..84c5775 100644 --- a/.bash_functions +++ b/.bash_functions @@ -6,3 +6,6 @@ function rgf { function rgv { rg --files -g "*$1*" | xargs -o vim } +function psk { + ps -ef | grep $1 | grep -v grep | awk '{ print $2 }' | xargs kill -9 +}