Skip to content

Commit 94a7bd6

Browse files
committed
Install git-wt and the config
1 parent 97efb5b commit 94a7bd6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

home-manager/git.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ in
145145
root = "~/repos";
146146
};
147147

148+
wt = {
149+
basedir = "../{gitroot}/.worktrees";
150+
};
151+
148152
# `git config --get-regexp ^alias` will show current aliases
149153
alias = {
150154
fixup = "commit --all --amend";

home-manager/packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
git
3535
# gh # Don't add gh here. Only use home-manager gh module to avoid https://github.com/cli/cli/pull/5378
3636
ghq
37+
patched.git-wt # `git wt` via subcommand
3738

3839
sequoia-sq # Alt `gpg`
3940
sequoia-chameleon-gnupg

overlays/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
}
7070
);
7171

72+
# Don't enable shell integrations, it replaces original `git` command.
7273
git-wt = prev.unstable.git-wt.overrideAttrs (
7374
finalAttrs: previousAttrs: {
7475
# 0.15.0 or later is required to enable https://github.com/k1LoW/git-wt/pull/81

0 commit comments

Comments
 (0)