From 8ae2c0c1e313377a4479569e8f1bf4a269e23937 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 14 Oct 2014 14:41:33 +0100 Subject: Adding new dotfiles for mutt conf + notes --- .dotfilesrc | 38 ++++++++++++++++++++++++++++++++++++++ .mailfilter | 3 +++ .muttrc | 19 +++++++++++++++++++ .mynotes | 9 +++++++++ install.sh | 19 ------------------- 5 files changed, 69 insertions(+), 19 deletions(-) create mode 100755 .dotfilesrc create mode 100644 .mailfilter create mode 100644 .muttrc create mode 100644 .mynotes delete mode 100755 install.sh 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 diff --git a/.mailfilter b/.mailfilter new file mode 100644 index 0000000..11c5d98 --- /dev/null +++ b/.mailfilter @@ -0,0 +1,3 @@ +HOME=/home/urbain +DEFAULT=/var/spool/mail/urbain +logfile "$HOME/.maillog" diff --git a/.muttrc b/.muttrc new file mode 100644 index 0000000..d75d382 --- /dev/null +++ b/.muttrc @@ -0,0 +1,19 @@ +set from = "chabog91@hotmail.com" +set realname = "Charles Bogosse" +set use_from = yes +set envelope_from = "yes" + +set spoolfile = /var/spool/mail/urbain +set folder = "~/Mail" +set record = "+sent" +set postponed = "+postponed" +set move = no + +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file = ~/.mutt/certificates + +set editor="vim" +set edit_headers + +set sendmail="/usr/sbin/ssmtp" diff --git a/.mynotes b/.mynotes new file mode 100644 index 0000000..3237a7a --- /dev/null +++ b/.mynotes @@ -0,0 +1,9 @@ +Money +- Expense claims +- Thames water +- Khoi: Oyster card + +To do +- Hazi, Amanda +- Black Rock +- Stoch proc diff --git a/install.sh b/install.sh deleted file mode 100755 index 95567e3..0000000 --- a/install.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -dir=~/dotfiles -olddir=~/dotfiles_old -files="bashrc vimrc zshrc muttrc vim xmodmap" - -mkdir -p $olddir -cd $dir -for file in $files; do - echo $file - mv ~/.$file ~/dotfiles_old/ - ln -s $dir/.$file ~ -done - -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