Skip to content

Commit

Permalink
Do not install much slow git operations even for large project
Browse files Browse the repository at this point in the history
tig and lazygit is slow
gitui is enough, but maybe needless. will consider in #521
  • Loading branch information
kachick committed Apr 8, 2024
1 parent 2af0861 commit acbf3f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
20 changes: 2 additions & 18 deletions home-manager/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
duster = "remote update origin --prune";
refresh = "!git switch-default && git pull --prune \"$(git upstream)\" \"$(git current)\"";
all = "!git refresh && git-delete-merged-branches";
gui = "!lazygit";
pp = "log --pretty=format:'%Cgreen%cd %Cblue%h %Creset%s' --date=short --decorate --graph --tags HEAD";
# Do not add `--graph`, it makes too slow in large repository as NixOS/nixpkgs
pp = "log --pretty=format:'%Cgreen%cd %Cblue%h %Creset%s' --date=short --decorate --tags HEAD";
};

# TODO: They will be overridden by local hooks, Fixes in #545
Expand Down Expand Up @@ -185,20 +185,4 @@
];
};
};

# https://github.com/nix-community/home-manager/blob/release-23.11/modules/programs/lazygit.nix
programs.lazygit = {
enable = true;

# https://dev.classmethod.jp/articles/eetann-lazygit-config-new-option/
settings = {
gui = {
language = "ja";
showIcons = true;
theme = {
lightTheme = true;
};
};
};
};
}
1 change: 0 additions & 1 deletion home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

git
tig
lazygit
gh
ghq

Expand Down

0 comments on commit acbf3f1

Please sign in to comment.