From 6af3b87c5f2c69081813c230fd4970d393b3fcdd Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 15 Apr 2019 10:07:42 -0700 Subject: [PATCH] Add global git ignore --- assets/default/git/exclude_global | 47 +++++++++++++++++++++++++++++++ recipes/default/git | 4 +++ 2 files changed, 51 insertions(+) create mode 100644 assets/default/git/exclude_global diff --git a/assets/default/git/exclude_global b/assets/default/git/exclude_global new file mode 100644 index 0000000..18a2ade --- /dev/null +++ b/assets/default/git/exclude_global @@ -0,0 +1,47 @@ +# compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so + +# Packages # +############ +# it's better to unpack these files and commit the raw source +# git has its own built in compression methods +*.7z +*.dmg +*.gz +*.iso +*.jar +*.rar +*.tar +*.zip + +# Logs and databases # +###################### +*.log +*.sql +*.sqlite + +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# codekit # +########### +.sass-cache/ +.codekit-config.json +config.codekit + +# ctags # +######### +tags diff --git a/recipes/default/git b/recipes/default/git index aef2dbc..cbc3840 100644 --- a/recipes/default/git +++ b/recipes/default/git @@ -9,3 +9,7 @@ git config --global color.ui auto git config --global diff.tool vimdiff # Suppress launching prompt git config --global difftool.prompt false +# Create global ignore file +mkdir -p $XDG_CONFIG_HOME/git/ +git config --global core.excludesfile "$XDG_CONFIG_HOME/git/exclude_global" +try_link "exclude_global" "$XDG_CONFIG_HOME/git/exclude_global"