aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pskill
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pskill')
-rwxr-xr-xplugins/pskill5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/pskill b/plugins/pskill
index dcec180..d02c9fa 100755
--- a/plugins/pskill
+++ b/plugins/pskill
@@ -20,10 +20,11 @@ else
sucmd=: # noop
fi
-echo -n "Enter process name ['defunct' for zombies]: "
-read psname
+printf "Enter process name ['defunct' for zombies]: "
+read -r psname
if ! [ -z "$psname" ]; then
+ # shellcheck disable=SC2009
cmd="$(ps -ax | grep -iw "$psname" | fzy | sed -e 's/^[ \t]*//' | cut -d' ' -f1)"
$sucmd kill -9 "$cmd"
fi