view zshrc-systemd @ 177:0eebd05e58ad

add an alias for 'pull -u'
author Dirk Olmes <dirk.olmes@codedo.de>
date Fri, 12 Jun 2020 02:48:48 +0200
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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