From b7a65468e4ef3916edb737be93dafd2b7cb3dd45 Mon Sep 17 00:00:00 2001 From: Heavy Date: Mon, 4 Apr 2022 15:53:53 +0200 Subject: [PATCH] Renamed new function to 'topby'. --- dot_bashrc.d/executable_09.functions.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_bashrc.d/executable_09.functions.tmpl b/dot_bashrc.d/executable_09.functions.tmpl index 8cfcdfc..4d73794 100755 --- a/dot_bashrc.d/executable_09.functions.tmpl +++ b/dot_bashrc.d/executable_09.functions.tmpl @@ -127,8 +127,8 @@ deblist() { } {{- end }} -# Run 'top' with list of processes matching name. -topof() { +# Run 'top' by a list of processes matching name. +topby() { local name=${1:?name required} local pidlist="$(pidof $name | sed 's/ /,/g')" top -p $pidlist