diff options
Diffstat (limited to 'linker.sh')
-rwxr-xr-x | linker.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/linker.sh b/linker.sh new file mode 100755 index 0000000..7d2aa61 --- /dev/null +++ b/linker.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +cd ~ + +# Start with .bashrc +if [[ -e .bashrc ]] ; then + cp .bashrc .bashrc.original +fi +ln -s ~/dotfiles/.bashrc ~/.bashrc + +# Next .vim(rc) +if [[ -e .vimrc ]] ; then + cp .vimrc .vimrc.original +fi +if [[ -e .vim ]] ; then + cp -r .vim .vim.original +fi +ln -s ~/dotfiles/.vimrc ~/.vimrc +ln -s ~/dotfiles/.vim ~/.vim + +# Next .git +if [[ -e .gitconfig ]] ; then + cp .gitconfig .gitconfig.original +fi +if [[ -e .gitignore_global ]] ; then + cp .gitignore_global .gitignore_global.original +fi +ln -s ~/dotfiles/.gitconfig ~/.gitconfig +ln -s ~/dotfiles/.gitignore_global .gitignore_global + |