From b19bfd86e4f7459d99674a5372f157c7228346aa Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Wed, 18 Mar 2026 12:15:12 -0400 Subject: [PATCH] zsh alias for nix --- home/zsh.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/zsh.nix b/home/zsh.nix index 887c888..63ab842 100644 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -39,6 +39,14 @@ nim = "nvim ."; sshnet = "ssh -i ~/.ssh/atlas-ssh.txt rathiharivansh@152.53.195.59"; tailscale = "/Applications/Tailscale.app/Contents/MacOS/Tailscale"; + + # nix helpers + ni = "nix profile install nixpkgs#"; # ni - quick imperative install + nr = "nix profile remove"; # nr - remove from profile + ns = "nix search nixpkgs"; # ns - search packages + nls = "nix profile list"; # nls - list installed profile packages + nrb = "darwin-rebuild switch --flake ~/Documents/GitHub/nix"; # nrb - rebuild declarative config + nup = "nix flake update ~/Documents/GitHub/nix && darwin-rebuild switch --flake ~/Documents/GitHub/nix"; # nup - update flake + rebuild }; envExtra = ''