summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2014-10-09 14:14:48 +0100
committerUrbain Vaes <urbain@vaes.uk>2014-10-09 14:14:48 +0100
commit54be9a471091bdc8e7770d85623895c83e3f3153 (patch)
tree539410b6883d0f777f3b32ec6fbc33245fec68e0 /install.sh
Initial commit
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..acc6395
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+dir=~/dotfiles # dotfiles directory
+olddir=~/dotfiles_old # old dotfiles backup directory
+files="bashrc vimrc vim zshrc oh-my-zsh" # list of files/folders to symlink in homedir
+
+mkdir -p $olddir
+cd $dir
+for file in $files; do
+ echo $file
+ mv ~/.$file ~/dotfiles_old/
+ ln -s $dir/.$file ~
+done