aboutsummaryrefslogtreecommitdiff
path: root/config/fish/functions/pss.fish
blob: f90563f8022e9b73d0b9b3ec2914f89e72cd75ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function pss
	if test (count $argv) -ne 1
        echo "usage: pss PATTERN"
    else
       set pids (pgrep -d , -f $argv[1])
       if test -n "$pids"
           echo -ne "\033[1;32m"
           ps -Fp $pids
           echo -ne "\033[1;0m"
       end
    end
end