update lservices function
This commit is contained in:
parent
c4ff5771dc
commit
ccf2fdf0d7
|
@ -140,11 +140,11 @@ lservices() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$_UID" == "0" ]]; then
|
if [[ "$_UID" == "0" ]]; then
|
||||||
local _OUT=$(sudo systemctl list-units --system -q --plain --full --no-pager -t service,scope | sort)
|
local _OUT=$(sudo systemctl list-units --system -q --plain --full --no-pager -t service,scope | grep -E '.scope|.service' | sort)
|
||||||
elif [[ "$_UID" == "$(id -u)" ]]; then
|
elif [[ "$_UID" == "$(id -u)" ]]; then
|
||||||
local _OUT=$(systemctl list-units --user -q --plain --full --no-pager -t service,scope | sort)
|
local _OUT=$(systemctl list-units --user -q --plain --full --no-pager -t service,scope | grep -E '.scope|.service' | sort)
|
||||||
else
|
else
|
||||||
local _OUT=$(sudo machinectl -q shell --uid="$_UID" .host /usr/bin/systemctl list-units --user -q --plain --full --no-pager -t service,scope | sort)
|
local _OUT=$(sudo machinectl -q shell --uid="$_UID" .host /usr/bin/systemctl list-units --user -q --plain --full --no-pager -t service,scope | grep -E '.scope|.service' | sort)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $_XCLIP == 1 ]]; then
|
if [[ $_XCLIP == 1 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue