view zshrc-systemd @ 175:8af0a6219353

Remove the support for genkernel 3, add support for distinguishing between gentoo/vanilla sources
author Dirk Olmes <dirk.olmes@codedo.de>
date Wed, 15 Apr 2020 09:02:04 +0200
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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