From 44a3ed3384a68c172943a7db6992e2dffa88230b Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 31 Oct 2014 22:01:56 +0000 Subject: Commit new version (no dots, vim folder and mutt folder) --- make | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 make (limited to 'make') diff --git a/make b/make new file mode 100755 index 0000000..2ece3d4 --- /dev/null +++ b/make @@ -0,0 +1,39 @@ +#!/bin/bash + +dir=~/dotfiles +olddir=~/dotfiles_old + +# Files to sync +files="vim mutt vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc" + +rm -rf $olddir +mkdir -p $olddir + +cd $dir +for file in $files; do + echo $file + mv ~/.$file $olddir + ln -s $dir/$file ~/.$file +done + +# Fetchmailrc (protect sensitive information) +# mv ~/.fetchmailrc $olddir +# cp $dir/.fetchmailrc ~ +# vim ~/.fetchmailrc +# read password +# sed -i 's/xx_change_me_xx/'$password'/g' ~/.fetchmailrc + +# SSMTP config +echo ssmtp.conf +sudo mv /etc/ssmtp/ssmtp.conf $olddir +sudo ln -s $dir/ssmtp.conf /etc/ssmtp/ + +# Permissions +cd +sudo chmod 600 ~/.fetchmailrc +sudo chmod 600 $dir/.mailfilter + +sudo rm -rf .vim/bundle +mkdir .vim/bundle +git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle +vim +PluginInstall +qall -- cgit v1.2.3