summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-10-21 22:58:56 +0200
committerAlan Pearce2019-10-21 22:58:56 +0200
commit43eea14f7530366a5bd89328d557d3602e1af0d1 (patch)
tree33edde694635d085ed88ec0c737af38e3afac63c /user
parent42ae19e4dfc9cca93fa7030a98939de3528457c2 (diff)
downloadnixfiles-43eea14f7530366a5bd89328d557d3602e1af0d1.tar.lz
nixfiles-43eea14f7530366a5bd89328d557d3602e1af0d1.tar.zst
nixfiles-43eea14f7530366a5bd89328d557d3602e1af0d1.zip
zsh: Add further nix aliases
Diffstat (limited to 'user')
-rw-r--r--user/settings/zsh.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index e0027e08..7a8f7ed8 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -284,7 +284,10 @@ in
       nq = "nix-env -q";
       ne = "nix-env -e";
       nup = "nix-env -u";
+      nlg = "nix-env --list-generations";
+      snlg = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
       ngc = "nix-collect-garbage --delete-older-than 14d";
+      sngc = "sudo nix-collect-garbage --delete-older-than 14d";
     };
 
     envExtra = ''