From 5addc47d17a93ed31ab14bc5242a6695ce3671f9 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Sun, 5 Feb 2017 01:17:02 -0500 Subject: Initial dotfiles for various tools that see regular use/tweaking --- linker.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 linker.sh (limited to 'linker.sh') 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 + -- cgit v1.2.3