blob: da53b7734f28254b084115ede82471ea1a76eecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 colormutt vim xmodmap mynotes mailfilter krystle tmux.conf zathurarc dotfilesrc mailcap"
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)
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
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
|