summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2014-10-31 22:01:56 +0000
committerUrbain Vaes <urbain@vaes.uk>2014-10-31 22:01:56 +0000
commit44a3ed3384a68c172943a7db6992e2dffa88230b (patch)
treed5d79c06bd464e7026708de35a0f73ec0d16317f /make
parent0fcd6967752813b7e8281c27bd9bc02e6deda34a (diff)
Commit new version (no dots, vim folder and mutt folder)
Diffstat (limited to 'make')
-rwxr-xr-xmake39
1 files changed, 39 insertions, 0 deletions
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