dotfiles/.bashrc.d/psgrep

2 lines
121 B
Plaintext

[[ ! -x $(which psgrep 2>/dev/null) ]] && function psgrep() { ps -ef | grep "${@}" | grep -v ${$}; } && export -f psgrep