annotate zshrc-systemd @ 165:6dd02b1ebb80

use java-config again for selecting JDKs
author Dirk Olmes <dirk.olmes@codedo.de>
date Wed, 19 Feb 2020 08:20:33 +0100
parents 383ea800bf98
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
128
129d5bcd9814 add zsh modules for inclusion
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 function sc() {
144
383ea800bf98 include sudo
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 128
diff changeset
2 local SUDO=""
383ea800bf98 include sudo
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 128
diff changeset
3
383ea800bf98 include sudo
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 128
diff changeset
4 if [[ $USER != "root" ]]; then
383ea800bf98 include sudo
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 128
diff changeset
5 SUDO="sudo"
383ea800bf98 include sudo
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 128
diff changeset
6 fi
383ea800bf98 include sudo
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 128
diff changeset
7 $SUDO systemctl $2 $1
128
129d5bcd9814 add zsh modules for inclusion
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 }