view zshrc-systemd @ 162:0bd8976bd5fb

add default aliases for gk and removeKernel
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 09 Jan 2020 13:03:20 +0100
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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