Ps : Nix fix.

This commit is contained in:
Dmitry Voronin 2024-01-28 22:11:35 +03:00
parent 8b8efad6a6
commit 4b324cd3a4

View file

@ -4,8 +4,8 @@ function ps() {
local process="${1}" local process="${1}"
if [[ "${process}" = "" ]]; then if [[ "${process}" = "" ]]; then
ps aux /usr/bin/env ps aux
else else
ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d" /usr/bin/env ps aux | sed -n -e "1p" -e "/${process}/Ip" | sed -e "/sed -n -e 1p -e/d"
fi fi
} }