view zshrc-systemd @ 179:e5f67219ad24

add bootloader updating
author Dirk Olmes <dirk.olmes@codedo.de>
date Thu, 23 Jul 2020 09:00:24 +0200
parents 383ea800bf98
children
line wrap: on
line source

function sc() {
	local SUDO=""

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