From cedcf23a496ec66b90291f1daf4388eb16cd0c5e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 18 May 2023 02:27:20 -0500 Subject: [PATCH] feat(git): use global git ignore --- dots/.config/.gitignore | 1 + .../.config/git/configs/gitconfig-ssfcu | 0 dots/.config/git/ignore | 4 ++++ dots/.gitconfig | 5 +++-- 4 files changed, 8 insertions(+), 2 deletions(-) rename git-configs/.gitconfig-ssfcu => dots/.config/git/configs/gitconfig-ssfcu (100%) create mode 100644 dots/.config/git/ignore diff --git a/dots/.config/.gitignore b/dots/.config/.gitignore index 7f9049e7..e1e0c164 100644 --- a/dots/.config/.gitignore +++ b/dots/.config/.gitignore @@ -15,3 +15,4 @@ !kitty !emacs !alacritty +!git diff --git a/git-configs/.gitconfig-ssfcu b/dots/.config/git/configs/gitconfig-ssfcu similarity index 100% rename from git-configs/.gitconfig-ssfcu rename to dots/.config/git/configs/gitconfig-ssfcu diff --git a/dots/.config/git/ignore b/dots/.config/git/ignore new file mode 100644 index 00000000..74975e02 --- /dev/null +++ b/dots/.config/git/ignore @@ -0,0 +1,4 @@ +# vim: set ft=gitignore + +# Ignore project specific configs for neovim +.nvim.lua diff --git a/dots/.gitconfig b/dots/.gitconfig index 6f541573..1a0d5875 100644 --- a/dots/.gitconfig +++ b/dots/.gitconfig @@ -9,6 +9,7 @@ [core] pager = delta ignorecase = false + excludesfile = ~/.config/git/ignore [interactive] diffFilter = delta --color-only --features=interactive @@ -59,7 +60,7 @@ ; Per environemnt specific setup shit [includeIf "gitdir:~/Git/SSFCU/"] - path = ~/.dot_files/git-configs/.gitconfig-ssfcu + path = ~/.config/git/configs/gitconfig-ssfcu [credential] helper = store @@ -79,4 +80,4 @@ [am] threeWay = true [gpg "ssh"] - allowedSignersFile = /home/sam/.config/git/allowed_signers + allowedSignersFile = ~/.config/git/allowed_signers