From 6c75ed7d2946505dbf93c56f4704809edcc681cf Mon Sep 17 00:00:00 2001 From: cswimr Date: Sat, 16 Nov 2024 20:40:33 -0500 Subject: [PATCH] fix the `upd` alias --- nixos/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/zsh.nix b/nixos/zsh.nix index 9aa38ad..349d202 100755 --- a/nixos/zsh.nix +++ b/nixos/zsh.nix @@ -39,7 +39,7 @@ ls = "eza --icons"; l = "eza -lhg --icons"; - upd = "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git --git-dir=/etc/nixos add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; + upd = "sudo nixos-generate-config --dir /etc/nixos/hosts && sudo rm /etc/nixos/hosts/configuration.nix && sudo mv /etc/nixos/hosts/hardware-configuration.nix /etc/nixos/hosts/$(hostname).nix && git -C /etc/nixos --git-dir=/etc/nixos/.git add /etc/nixos/hosts/$(hostname).nix && sudo nixos-rebuild switch"; c = "clear"; # alias sudo to itself so user aliases can be sudoed