From 39dedbd44030a6e0e894dba635db692a4b05b344 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 18:43:16 +0100 Subject: [PATCH] pgrep --- sh/alias/pgrep.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sh/alias/pgrep.sh b/sh/alias/pgrep.sh index bbb93de..a17c888 100644 --- a/sh/alias/pgrep.sh +++ b/sh/alias/pgrep.sh @@ -1,7 +1,7 @@ # look for a string in processes names -pg() { - ps \ - -A | - grep \ - "${@}" +pg() { sh_a__proc_grep "${@}"; } +sh_a__proc_grep() { + pgrep \ + --list-full \ + "${@}" }