mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-17 04:02:24 +00:00
zsh alias for nix
This commit is contained in:
parent
ef90b9e4a7
commit
b19bfd86e4
1 changed files with 8 additions and 0 deletions
|
|
@ -39,6 +39,14 @@
|
||||||
nim = "nvim .";
|
nim = "nvim .";
|
||||||
sshnet = "ssh -i ~/.ssh/atlas-ssh.txt rathiharivansh@152.53.195.59";
|
sshnet = "ssh -i ~/.ssh/atlas-ssh.txt rathiharivansh@152.53.195.59";
|
||||||
tailscale = "/Applications/Tailscale.app/Contents/MacOS/Tailscale";
|
tailscale = "/Applications/Tailscale.app/Contents/MacOS/Tailscale";
|
||||||
|
|
||||||
|
# nix helpers
|
||||||
|
ni = "nix profile install nixpkgs#"; # ni <pkg> - quick imperative install
|
||||||
|
nr = "nix profile remove"; # nr <index> - remove from profile
|
||||||
|
ns = "nix search nixpkgs"; # ns <query> - 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 = ''
|
envExtra = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue