view zshrc-systemd @ 183:249b37a8c917

Fix fuer Kernel Versionen mit Revision
author Dirk Olmes <dirk.olmes@codedo.de>
date Tue, 22 Dec 2020 12:03:22 +0100
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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