dotfiles/bin/systemctl-user
Andrei Jiroh Halili 0052b338e8
add wrapper script for systemctl in userspace (systemctl --user)
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
2024-09-08 08:20:48 +08:00

11 lines
No EOL
266 B
Bash
Executable file

#!/usr/bin/env bash
# A wrapper script as an alias for calling "systemctl --user"
if [[ $1 == "" ]]; then
echo "Usage: $0 command..."
echo "For more information on how to use systemctl on userspace, see man:systemctl(1)"
exit 1
fi
exec systemctl --user "$@"