summary refs log tree commit diff
path: root/modules/home/common.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-12-31 01:20:37 +0100
committerMel <mel@rnrd.eu>2026-01-11 22:50:52 +0100
commitba298b94ba56dabf116a93fbad3e5f96f76a2cb1 (patch)
tree0e391cd8afbe178b58c31e9ec8aad1567c1d68f4 /modules/home/common.nix
parente969da0511ace3d0910f464eacc1b4db4c2ff93f (diff)
downloadminerals-ba298b94ba56dabf116a93fbad3e5f96f76a2cb1.tar.zst
minerals-ba298b94ba56dabf116a93fbad3e5f96f76a2cb1.zip
Git aliases for skip-worktree
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/home/common.nix')
-rw-r--r--modules/home/common.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/home/common.nix b/modules/home/common.nix
index e59f195..52cdf11 100644
--- a/modules/home/common.nix
+++ b/modules/home/common.nix
@@ -23,6 +23,11 @@
         "*~"
         "[._]*.sw?"
       ];
+      aliases = {
+        "skip" = "update-index --skip-worktree";
+        "unskip" = "update-index --no-skip-worktree";
+      };
+
       extraConfig.init.defaultBranch = "main";
     };