From 02892635c8e56a81926cd10f0e453a577b694911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 14 Jun 2023 12:37:29 +0200 Subject: [PATCH] feat: seperate gitconfig into multiple files --- .gitignore | 16 +++++++++++----- git/config | 21 ++++++--------------- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 251fd2a..419d604 100644 --- a/.gitignore +++ b/.gitignore @@ -7,17 +7,23 @@ !README.md # allow some stuff to be pushed -!tmux -!git !alacritty !nvim -!zsh !.pyenv -# explicity ignore completions +# zsh +!zsh zsh/antigen.zsh zsh/completions/* !zsh/completions/.keep -# explicity ignore tmux plugins +# tmux +!tmux tmux/plugins + +# git +!git +git/* +!git/config +!git/gitignore +!git/aflabs diff --git a/git/config b/git/config index e9c8fd6..95e19ec 100644 --- a/git/config +++ b/git/config @@ -1,25 +1,16 @@ [user] name = Matej Janežič email = janezic.mj@gmail.com - signingkey = 4298E230ED37B2C0 [core] autocrlf = input excludesfile = ~/.config/git/gitignore editor = nvim -[includeIf "gitdir:~/Desktop/git/git.aflabs.org/"] - path = ~/.config/git/aflabs -[commit] - gpgsign = true -[gpg] - program = /opt/homebrew/bin/gpg [init] defaultBranch = master -[alias] - andraz = commit --amend --no-edit --author=\"Andraž Kladnik \" - petra = commit --amend --no-edit --author=\"Petra Podlogar \" - ziga = commit --amend --no-edit --author=\"Žiga Avbreht \" - laura = commit --amend --no-edit --author=\"lauraGB \" - gasper = commit --amend --no-edit --author=\"Gašper Žajdela \" - luka = commit --amend --no-edit --author=\"Luka Avbreht \" - koprivec = commit --amend --no-edit --author=\"Filip Koprivec \" +[include] + path = ~/.config/git/alias +[include] + path = ~/.config/git/commitsign +[includeIf "gitdir:~/Desktop/git/git.aflabs.org/"] + path = ~/.config/git/aflabs