diff --git a/.bashrc.d/11-functions.bashrc b/.bashrc.d/11-functions.bashrc index a34761c..af04198 100644 --- a/.bashrc.d/11-functions.bashrc +++ b/.bashrc.d/11-functions.bashrc @@ -140,11 +140,11 @@ lservices() { fi 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 - 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 - 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 if [[ $_XCLIP == 1 ]]; then