This commit is contained in:
Harivansh Rathi 2026-03-18 12:28:37 -04:00
parent b19bfd86e4
commit 4e52d20237

View file

@ -41,12 +41,11 @@
tailscale = "/Applications/Tailscale.app/Contents/MacOS/Tailscale"; tailscale = "/Applications/Tailscale.app/Contents/MacOS/Tailscale";
# nix helpers # nix helpers
ni = "nix profile install nixpkgs#"; # ni <pkg> - quick imperative install
nr = "nix profile remove"; # nr <index> - remove from profile nr = "nix profile remove"; # nr <index> - remove from profile
ns = "nix search nixpkgs"; # ns <query> - search packages ns = "nix search nixpkgs"; # ns <query> - search packages
nls = "nix profile list"; # nls - list installed profile packages nls = "nix profile list"; # nls - list installed profile packages
nrb = "darwin-rebuild switch --flake ~/Documents/GitHub/nix"; # nrb - rebuild declarative config nrb = "sudo 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 nup = "nix flake update ~/Documents/GitHub/nix && sudo darwin-rebuild switch --flake ~/Documents/GitHub/nix"; # nup - update flake + rebuild
}; };
envExtra = '' envExtra = ''
@ -107,6 +106,8 @@
$path $path
) )
ni() { nix profile install "nixpkgs#$1"; }
unalias ga 2>/dev/null unalias ga 2>/dev/null
ga() { ga() {
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then