Mercurial > hg > zsh-env
annotate zshrc-systemd @ 191:c41517fedf83 default tip
Funktion zum setzen des Terminal Title
| author | Dirk Olmes <dirk.olmes@codedo.de> |
|---|---|
| date | Fri, 20 Jun 2025 08:28:06 +0200 |
| parents | 383ea800bf98 |
| children |
| rev | line source |
|---|---|
|
128
129d5bcd9814
add zsh modules for inclusion
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 function sc() { |
| 144 | 2 local SUDO="" |
| 3 | |
| 4 if [[ $USER != "root" ]]; then | |
| 5 SUDO="sudo" | |
| 6 fi | |
| 7 $SUDO systemctl $2 $1 | |
|
128
129d5bcd9814
add zsh modules for inclusion
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 } |
