Mercurial > hg > zsh-env
view zshrc-systemd @ 170:95e349996727
Add a script for setting up the shell environment on a naked home.
Use a global .hgrc that has a hook for local includes per machine.
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Sat, 04 Apr 2020 03:53:18 +0200 |
parents | 383ea800bf98 |
children |
line wrap: on
line source
function sc() { local SUDO="" if [[ $USER != "root" ]]; then SUDO="sudo" fi $SUDO systemctl $2 $1 }