From 107e7bf688ef9060472d261c5359eff4aa4b68be Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 1 Apr 2024 09:19:19 +0100 Subject: [PATCH] Add "updown" alias to zsh. Basically just do all the stuff I usually do before shutting down, and then shutdown. --- home/zsh/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/zsh/default.nix b/home/zsh/default.nix index c543382a..da60142c 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -18,6 +18,7 @@ nixos-boot = "sudo nixos-rebuild boot"; nixos-switch = "sudo nixos-rebuild switch"; gsa = "git-sync-all"; + updown = "sudo nixos-rebuild boot && git-sync-all && sudo shutdown now"; }; oh-my-zsh = { enable = true;