Browse Source

added gitignore and linked+configured it in the setup.sh

bananicorn 5 years ago
parent
commit
247ce15465
2 changed files with 26 additions and 0 deletions
  1. 22 0
      .gitignore
  2. 4 0
      setup.sh

+ 22 - 0
.gitignore

@@ -0,0 +1,22 @@
+# Created by https://www.gitignore.io/api/tags
+# Edit at https://www.gitignore.io/?templates=tags
+
+### Tags ###
+# Ignore tags created by etags, ctags, gtags (GNU global) and cscope
+TAGS
+.TAGS
+!TAGS/
+tags
+.tags
+!tags/
+gtags.files
+GTAGS
+GRTAGS
+GPATH
+GSYMS
+cscope.files
+cscope.out
+cscope.in.out
+cscope.po.out
+
+# End of https://www.gitignore.io/api/tags

+ 4 - 0
setup.sh

@@ -5,8 +5,12 @@ ln -s ~/dotfiles/.fishrc ~/.fishrc
 ln -s ~/dotfiles/.bash_profile ~/.bash_profile
 ln -s ~/dotfiles/.profile ~/.profile
 ln -s ~/dotfiles/.xinitrc ~/.xinitrc
+ln -s ~/dotfiles/.gitignore ~/.gitignore
 ./setup-vim.sh
 
 mkdir -p ~/.config
 mkdir -p ~/.config/i3
 ln -s ~/dotfiles/i3_config ~/.config/i3/config
+
+#if git is installed
+git config --global core.excludesfile '~/.gitignore'