view zshrc-systemd @ 147:163ef90dd755

add an alias for sudo typos
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 23 Oct 2018 17:37:22 +0200
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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