# look for a string in processes names pg() { a__proc_grep "${@}"; } a__proc_grep() { pgrep \ --list-full \ "${@}" }