summaryrefslogtreecommitdiff
path: root/.dotfilesrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2014-10-14 14:41:33 +0100
committerUrbain Vaes <urbain@vaes.uk>2014-10-14 14:41:33 +0100
commit8ae2c0c1e313377a4479569e8f1bf4a269e23937 (patch)
tree1ca3b0d128b7cbb3d1c643750ae76d8a8ebe75e1 /.dotfilesrc
parent5e3814f6664edcf0bb633d38ef7836dbf768b696 (diff)
Adding new dotfiles for mutt conf + notes
Diffstat (limited to '.dotfilesrc')
-rwxr-xr-x.dotfilesrc38
1 files changed, 38 insertions, 0 deletions
diff --git a/.dotfilesrc b/.dotfilesrc
new file mode 100755
index 0000000..4a0f02e
--- /dev/null
+++ b/.dotfilesrc
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+dir=~/dotfiles
+olddir=~/dotfiles_old
+
+# Files: bash, vim, zsh, mutt, vim, xmodmap, notes, fetchmail, maildrop, installation file.
+files="bashrc vimrc zshrc muttrc vim xmodmap mynotes mailfilter dotfilesrc"
+
+rm -rf $olddir
+mkdir -p $olddir
+
+cd $dir
+for file in $files; do
+ echo $file
+ mv ~/.$file $olddir
+ ln -s $dir/.$file ~
+done
+
+# Fetchmailrc (protect sensitive information)
+echo Enter fetchmail password
+read password
+mv ~/.fetchmailrc $olddir
+cp $dir/.fetchmailrc ~
+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
+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