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