blob: f8832c55edbb172fb279dda1369fddc9c9652316 (
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
|