view zshrc-systemd @ 171:707364297b3a

Remove the checked in .hgignore to make space for a better approach
author Dirk Olmes <dirk.olmes@codedo.de>
date Sat, 04 Apr 2020 04:05:37 +0200
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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