core: better sudo and journal aliases

This commit is contained in:
Timothy DeHerrera 2019-12-19 11:57:49 -07:00
parent e7d560a3af
commit 3038c1db41
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122

View file

@ -80,19 +80,19 @@ in
nrb = ifSudo "sudo nixos-rebuild";
# sudo
si = ifSudo "env sudo -i";
sudo = ifSudo "sudo -E ";
s = ifSudo "sudo -E ";
si = ifSudo "sudo -i";
se = ifSudo "sudoedit";
# systemd
ctl = "systemctl";
stl = ifSudo "sudo systemctl";
stl = ifSudo "s systemctl";
utl = "systemctl --user";
ut = "systemctl --user start";
un = "systemctl --user stop";
up = ifSudo "sudo systemctl start";
dn = ifSudo "sudo systemctl stop";
jctl = "journalctl";
up = ifSudo "s systemctl start";
dn = ifSudo "s systemctl stop";
jtl = "journalctl";
};