diff options
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 |