From 539c046ac9d14fe7afa17f0d4d4a7bf3a2c2ea93 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Tue, 5 Nov 2024 18:07:38 -0800 Subject: [PATCH] feat(systemctl): Add abbrs Also refactored journalctl abbrs a bit --- home/services/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/home/services/default.nix b/home/services/default.nix index 3331b8f..121c527 100644 --- a/home/services/default.nix +++ b/home/services/default.nix @@ -1,14 +1,16 @@ { ... }: { home.shellAbbrs = { - jf = { - position = "command"; - expansion = "sudo journalctl --follow --unit"; - }; - je = { - position = "command"; - expansion = "sudo journalctl --pager-end --unit"; - }; + jctlf = "sudo journalctl --follow --unit"; + jctle = "sudo journalctl --pager-end --unit"; + + sctl = "sudo systemctl"; + sctls = "sudo systemctl status"; + sctle = "sudo systemctl enable --now"; + sctld = "sudo systemctl disable --now"; + sctlr = "sudo systemctl restart"; + sctla = "sudo systemctl start"; + sctlo = "sudo systemctl stop"; }; imports = [