From 41aa873737946dca0e8dec47d13ddfbc1f52774b Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 7 Jul 2024 10:58:54 -0400 Subject: [PATCH] Globally ignore .DS_Store --- configs/.gitconfig | 3 +++ configs/global.gitignore | 2 ++ install-linux.sh | 1 + install-windows.sh | 1 + 4 files changed, 7 insertions(+) create mode 100644 configs/global.gitignore diff --git a/configs/.gitconfig b/configs/.gitconfig index 1126dca..a875c56 100644 --- a/configs/.gitconfig +++ b/configs/.gitconfig @@ -2,6 +2,9 @@ email = evan@ewpratten.com name = Evan Pratten +[core] + excludesFile = ~/.gitignore + [init] defaultBranch = master diff --git a/configs/global.gitignore b/configs/global.gitignore new file mode 100644 index 0000000..444e5b7 --- /dev/null +++ b/configs/global.gitignore @@ -0,0 +1,2 @@ +# Don't track macos .DS_Store files +.DS_Store \ No newline at end of file diff --git a/install-linux.sh b/install-linux.sh index 1a85341..9bf5cca 100644 --- a/install-linux.sh +++ b/install-linux.sh @@ -59,6 +59,7 @@ fi # Configure Git ln -sf $EWCONFIG_ROOT/configs/.gitconfig ~/.gitconfig +ln -sf $EWCONFIG_ROOT/configs/global.gitignore ~/.gitignore # Configure SSH ln -sf $EWCONFIG_ROOT/configs/ssh/config ~/.ssh/config diff --git a/install-windows.sh b/install-windows.sh index 2c82dcf..92acb3b 100644 --- a/install-windows.sh +++ b/install-windows.sh @@ -32,6 +32,7 @@ ln -sf $EWCONFIG_ROOT/configs/windows-terminal/settings.json $LOCALAPPDATA/Packa # Configure Git ln -sf $EWCONFIG_ROOT/configs/.gitconfig ~/.gitconfig +ln -sf $EWCONFIG_ROOT/configs/global.gitignore ~/.gitignore # Configure Vim ln -sf $EWCONFIG_ROOT/configs/vim/.vimrc ~/.vimrc