Skip to content

Commit

Permalink
home/git: add some default ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed Jun 23, 2024
1 parent 5a83a12 commit 9cfb279
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion home/common/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
xdg-open = "!${pkgs.lib.getExe pkgs.github-cli} browse";
sync-upstream = "!${pkgs.git}/bin/git fetch upstream master && ${pkgs.git}/bin/git rebase upstream/master && ${pkgs.git}/bin/git push origin master";
};

ignores = [
".direnv/"
"/tags" # Neovim
];
extraConfig = {
init = {
defaultBranch = "main";
Expand Down
1 change: 1 addition & 0 deletions home/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
imports = [
mac-app-util.homeManagerModules.default
./desktop-standalone-packages.nix
./git.nix
./zsh.nix
];
}
7 changes: 7 additions & 0 deletions home/darwin/git.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
programs.git = {
ignores = [
".DS_Store" # https://en.wikipedia.org/wiki/.DS_Store
];
};
}

0 comments on commit 9cfb279

Please sign in to comment.