From a54c825468ff6bd3e05c15c868dfd569d18dbe81 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 15 Sep 2021 18:21:19 +0200 Subject: [PATCH] Add command to kill wine --- arch-config/.config/fish/config.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch-config/.config/fish/config.fish b/arch-config/.config/fish/config.fish index 9ee241e1..013e4531 100755 --- a/arch-config/.config/fish/config.fish +++ b/arch-config/.config/fish/config.fish @@ -117,6 +117,9 @@ alias ls='ls --color=auto' # fix obvious typo's #alias cd..='cd ..' +# kill all wine processes +alias killwine='ls -l /proc/*/exe 2>/dev/null | grep -E 'wine(64)?-preloader|wineserver' | perl -pe 's;^.*/proc/(\d+)/exe.*$;$1;g;' | xargs -n 1 kill' + ## Colorize the grep command output for ease of use (good for log files)## alias grep='grep --color=auto' alias egrep='egrep --color=auto'