view zshrc-systemd @ 167:2ab4c6b83044

different location for the GOPATH folder
author Dirk Olmes <dirk.olmes@codedo.de>
date Sat, 28 Mar 2020 02:34:26 +0100
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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