diff options
author | Urbain Vaes <urbain@vaes.uk> | 2014-10-09 14:14:48 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2014-10-09 14:14:48 +0100 |
commit | 54be9a471091bdc8e7770d85623895c83e3f3153 (patch) | |
tree | 539410b6883d0f777f3b32ec6fbc33245fec68e0 /install.sh |
Initial commit
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 13 |
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 |