all repos — nixfiles @ 515d5dfee802b672b10321b772976e33c740f546

System and user configuration, managed by nix and home-manager

shell: add some aliases for common systemctl/journalctl commands

Alin
commit

515d5dfee802b672b10321b772976e33c740f546

parent

81b34a285bcb2ae77e821a51adcaa9e4e8766799

1 file changed, 17 insertions(+), 0 deletions(-)

changed files
M system/settings/programs/shell.nix → system/settings/programs/shell.nix
@@ -17,6 +17,23 @@ ip6 = "ip -6";
} (lib.mkIf pkgs.stdenv.isLinux { ping6 = "ping -6"; + + jc = "journalctl"; + jcu = "journalctl -u"; + jcb = "journalctl -b"; + jcbu = "journalctl -b -u"; + + sy = "systemctl"; + syrs = "systemctl restart"; + sys = "systemctl start"; + syp = "systemctl stop"; + syt = "systemctl status"; + syc = "systemctl cat"; + + sylu = "systemctl list-units"; + sylf = "systemctl list-units --failed"; + syluf = "systemctl list-unit-files"; + sylt = "systemctl list-timers"; }) ]; promptInit = ''