aboutsummaryrefslogtreecommitdiffstats
path: root/linker.sh
diff options
context:
space:
mode:
authorMatt Kohls <mattkohls13@gmail.com>2017-02-05 01:17:02 -0500
committerMatt Kohls <mattkohls13@gmail.com>2017-02-05 01:17:02 -0500
commit5addc47d17a93ed31ab14bc5242a6695ce3671f9 (patch)
treeadcca2632e50eddeab32211008259a28e4c55176 /linker.sh
downloaddotfiles-5addc47d17a93ed31ab14bc5242a6695ce3671f9.tar.gz
dotfiles-5addc47d17a93ed31ab14bc5242a6695ce3671f9.tar.bz2
dotfiles-5addc47d17a93ed31ab14bc5242a6695ce3671f9.zip
Initial dotfiles for various tools that see regular use/tweaking
Diffstat (limited to 'linker.sh')
-rwxr-xr-xlinker.sh30
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
+