diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2019-01-23 12:25:53 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2019-01-23 12:26:21 +0100 |
commit | fa53d07ab721c9d873d888b0181b297e231f42e6 (patch) | |
tree | 5090c5ab8f081546b84e253f0a898ffb7986eaa7 | |
parent | c301cb8074967a0e146d3511d1d6b5cd87a915d4 (diff) |
Add global .gitignore file
-rw-r--r-- | gitignore | 15 | ||||
-rwxr-xr-x | install | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/gitignore b/gitignore new file mode 100644 index 0000000..aae79c9 --- /dev/null +++ b/gitignore @@ -0,0 +1,15 @@ +# knitr cache directories +*_cache/ + +# libreoffice lock files +.~lock*# + +*.tmp + +# Microsoft Office temporary files +~$*.doc* +~$*.xls* +~$*.xlk* +~$*.ppt* + + @@ -6,7 +6,7 @@ cd $(dirname $BASH_SOURCE) BASE=$(pwd) # dotfiles to install -for dotfile in bashrc vimrc gitconfig Rprofile Renviron tmux.conf reportbugrc; do +for dotfile in bashrc vimrc gitconfig gitignore Rprofile Renviron tmux.conf reportbugrc; do mkdir -pv bak [ -e ~/.$dotfile ] && mv -v ~/.$dotfile bak/.$dotfile ln -sfv $BASE/$dotfile ~/.$dotfile |