commit cd32467fa39e4ea836191911ce0415fd4cfa687d
parent c1492cb5c7785552ea1410d2d88f2a7a29db6951
Author: Peter <peter@minskio.co.uk>
Date: Mon, 2 Nov 2026 12:19:26 +0000
Safety if you're in the wrong directory
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/home/fish.nix b/home/fish.nix
@@ -34,6 +34,7 @@
extract = "${pkgs.atool}/bin/aunpack";
jdupes = "jdupes -A"; # exclude hidden files
ncdusteam = "ncdu $HOME/.local/share/Steam/steamapps/common/ 2>/dev/null";
+ nrebuild = "test -f entrypoint.nix && sudo nixos-rebuild -I nixos-config=entrypoint.nix switch --upgrade";
vaultedit = "find \"$SYNCDIR\" -maxdepth 5 -type f -not -path \"\*/\.git\" | ${pkgs.fzf}/bin/fzf --preview \"cat {}\" --layout reverse | xargs -r -I{} \"$EDITOR\" {}";
week = "date +%V";
# sort:end