diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 5f67ac0..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.swo -*.swp diff --git a/.globalgitignore b/.globalgitignore new file mode 100644 index 0000000..101098a --- /dev/null +++ b/.globalgitignore @@ -0,0 +1,7 @@ +# vim +*.swp +*.swo +*~ + +# OSX +.DS_Store diff --git a/install.sh b/install.sh index 3197cc1..a44c2d0 100644 --- a/install.sh +++ b/install.sh @@ -6,3 +6,6 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too # symlink dots ln -sf $(pwd)/.vimrc ~/.vimrc ln -sf $(pwd)/.zshrc ~/.zshrc + +# global gitignore +git config --global core.excludesfile ${pwd}/.globalgitignore