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 \ + "${@}" }