mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
zsh
This commit is contained in:
parent
b19bfd86e4
commit
4e52d20237
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue