Skip to content

Commit acbf3f1

Browse files
committed
Do not install much slow git operations even for large project
tig and lazygit is slow gitui is enough, but maybe needless. will consider in #521
1 parent 2af0861 commit acbf3f1

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

home-manager/git.nix

+2-18
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
duster = "remote update origin --prune";
2929
refresh = "!git switch-default && git pull --prune \"$(git upstream)\" \"$(git current)\"";
3030
all = "!git refresh && git-delete-merged-branches";
31-
gui = "!lazygit";
32-
pp = "log --pretty=format:'%Cgreen%cd %Cblue%h %Creset%s' --date=short --decorate --graph --tags HEAD";
31+
# Do not add `--graph`, it makes too slow in large repository as NixOS/nixpkgs
32+
pp = "log --pretty=format:'%Cgreen%cd %Cblue%h %Creset%s' --date=short --decorate --tags HEAD";
3333
};
3434

3535
# TODO: They will be overridden by local hooks, Fixes in #545
@@ -185,20 +185,4 @@
185185
];
186186
};
187187
};
188-
189-
# https://github.com/nix-community/home-manager/blob/release-23.11/modules/programs/lazygit.nix
190-
programs.lazygit = {
191-
enable = true;
192-
193-
# https://dev.classmethod.jp/articles/eetann-lazygit-config-new-option/
194-
settings = {
195-
gui = {
196-
language = "ja";
197-
showIcons = true;
198-
theme = {
199-
lightTheme = true;
200-
};
201-
};
202-
};
203-
};
204188
}

home-manager/packages.nix

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848

4949
git
5050
tig
51-
lazygit
5251
gh
5352
ghq
5453

0 commit comments

Comments
 (0)