From 1d3700e58ea164a8016287a7151c8ef12e47bf1a Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 17 Jan 2025 18:49:24 -0600 Subject: [PATCH] fish: add sudo to system abbreviations Signed-off-by: Myned --- options/custom/programs/fish.nix | 38 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/options/custom/programs/fish.nix b/options/custom/programs/fish.nix index c56b0a8..b5b3332 100644 --- a/options/custom/programs/fish.nix +++ b/options/custom/programs/fish.nix @@ -42,10 +42,10 @@ in { "/r" = any "/run"; "/rc" = any "/run/current-system"; - reboot = "systemctl reboot"; - restart = "systemctl reboot"; - poweroff = "systemctl poweroff"; - shutdown = "systemctl poweroff"; + reboot = "sudo systemctl reboot"; + restart = "sudo systemctl reboot"; + poweroff = "sudo systemctl poweroff"; + shutdown = "sudo systemctl poweroff"; rsync = "rsync --info progress2"; @@ -160,21 +160,21 @@ in { nr = "nixos repl"; sc = "systemctl"; - scp = "systemctl poweroff"; - scr = "systemctl reboot"; - scs = "systemctl --system"; - scsd = "systemctl --system disable"; - scsdn = "systemctl --system disable --now"; - scse = "systemctl --system reenable"; - scsen = "systemctl --system reenable --now"; - scsh = "systemctl --system show"; - scsl = "systemctl --system list-unit-files"; - scsm = "systemctl --system mask"; - scsr = "systemctl --system restart"; - scsrr = "systemctl --system reload-or-restart"; - scss = "systemctl --system status"; - scst = "systemctl --system stop"; - scsu = "systemctl --system unmask"; + scp = "sudo systemctl poweroff"; + scr = "sudo systemctl reboot"; + scs = "sudo systemctl --system"; + scsd = "sudo systemctl --system disable"; + scsdn = "sudo systemctl --system disable --now"; + scse = "sudo systemctl --system reenable"; + scsen = "sudo systemctl --system reenable --now"; + scsh = "sudo systemctl --system show"; + scsl = "sudo systemctl --system list-unit-files"; + scsm = "sudo systemctl --system mask"; + scsr = "sudo systemctl --system restart"; + scsrr = "sudo systemctl --system reload-or-restart"; + scss = "sudo systemctl --system status"; + scst = "sudo systemctl --system stop"; + scsu = "sudo systemctl --system unmask"; scu = "systemctl --user"; scud = "systemctl --user disable"; scudn = "systemctl --user disable --now";