diff options
-rwxr-xr-x | .dotfilesrc | 38 | ||||
-rw-r--r-- | .mailfilter | 3 | ||||
-rw-r--r-- | .muttrc | 19 | ||||
-rw-r--r-- | .mynotes | 9 | ||||
-rwxr-xr-x | install.sh | 19 |
5 files changed, 69 insertions, 19 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 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" @@ -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 - |