diff --git a/load/alias/systemd/root b/load/alias/systemd/root index 603e830..e6329bf 100644 --- a/load/alias/systemd/root +++ b/load/alias/systemd/root @@ -11,3 +11,6 @@ alias sdle="systemctl list-unit-files | grep enabled" alias sdpidu="systemctl show --property MainPID --value" alias sdmt="sudo systemctl list-units -t mount --all" alias sded="sudo systemctl edit" +alias sdcat="sudo systemctl cat" +alias sdsh="sudo systemctl show --all" + diff --git a/modules/systemd.lib b/modules/systemd.lib index 7357a06..882f935 100644 --- a/modules/systemd.lib +++ b/modules/systemd.lib @@ -49,4 +49,20 @@ loginctl disable-linger function sdstub { [[ $(loginctl show-user "$USER" --property=Linger | cut -d= -f2) == 'yes' ]] && echo enabled || echo disabled +} + +function sdcatg(){ + systemctl cat "$1" | grep "$2" +} + +function sdshg(){ + systemctl show "$1" | grep "$2" +} + +function sdcatug(){ + systemctl cat --user "$1" | grep "$2" +} + +function sdshug(){ + systemctl show --user "$1" | grep "$2" } \ No newline at end of file