view zshrc-systemd @ 185:bf38575e8b28

more aliases
author Dirk Olmes <dirk.olmes@codedo.de>
date Sat, 01 Oct 2022 17:09:12 +0200
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

	if [[ $USER != "root" ]]; then
		SUDO="sudo"
	fi
	$SUDO systemctl $2 $1
}