From 65431d8c821eae160ac90f0a9930baee5b58bb04 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 17 Feb 2022 18:09:11 +0100 Subject: [PATCH] bash: psk -- --- .bash_extra | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.bash_extra b/.bash_extra index d85647c..4c27dc4 100644 --- a/.bash_extra +++ b/.bash_extra @@ -74,19 +74,19 @@ function m2m { fi fi } -function psk { - if [[ "$1" == "--help" ]]; then - echo "Beende Prozess "\$1"" - echo "" - echo " Usage: psk " - else - if [ -z "$1" ]; then - echo "[ERROR] Prozessname fehlt..." - else - ps -ef | grep "$1" | grep -v grep | awk '{ print $2 }' | xargs kill -9 - fi - fi -} +#function psk { +# if [[ "$1" == "--help" ]]; then +# echo "Beende Prozess "\$1"" +# echo "" +# echo " Usage: psk " +# else +# if [ -z "$1" ]; then +# echo "[ERROR] Prozessname fehlt..." +# else +# ps -ef | grep "$1" | grep -v grep | awk '{ print $2 }' | xargs kill -9 +# fi +# fi +#} function rgf { if [[ "$1" == "--help" ]]; then echo "Finde alle Dateien die "\$1" im Namen haben." @@ -177,6 +177,7 @@ alias grep="grep -i --color=auto" alias hostname="hostname -f" alias untar="tar -xzf" alias unmount="umount" +alias psk="pkill" # git alias gp="git stash && git pull && git stash pop" alias gf="git fetch"