-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.sh
84 lines (68 loc) · 2.76 KB
/
bootstrap.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
# -*- coding: utf-8 -*-
#{{{ Dotfiles
#git clone git@github.com:saimn/dotfiles.git ~/lib/dotfiles
for i in "aliases" "bashrc" "ctags" "gitconfig" "gitignore" "lessfilter" \
"mailcap" "pdbrc" "screenrc" "tmux.conf" "vim" "gdbinit" "ipython" "jupyter"
do
[ -e $HOME/.$i ] && rm $HOME/.$i
ln -s $HOME/lib/dotfiles/$i $HOME/.$i
done
mkdir -p $HOME/lib/dotfiles/vim/tmp/{backup,swap,undo}
rm $HOME/bin
ln -s $HOME/lib/dotfiles/bin $HOME/bin
for i in "kitty" "matplotlib"
do
[ -e $HOME/.config/$i ] && rm $HOME/.config/$i
ln -s $HOME/lib/dotfiles/$i $HOME/.config/$i
done
#}}}
#{{{ ZSH
git clone --recurse-submodules https://github.com/sorin-ionescu/prezto.git ~/lib/prezto
rm ~/{.zprezto,.zpreztorc,.zshenv,.zshrc}
ln -s ~/lib/dotfiles/zshrc ~/.zshrc
ln -s ~/lib/dotfiles/zshenv ~/.zshenv
ln -s ~/lib/dotfiles/zpreztorc ~/.zpreztorc
ln -s ~/lib/prezto ~/.zprezto
touch ~/lib/dotfiles/zsh/locals.zsh
#}}}
# {{{ Emacs
#git clone git@github.com:saimn/dotemacs.git ~/lib/dotemacs/
#rm ~/.emacs.d
#ln -s ~/lib/dotemacs ~/.emacs.d
#mkdir -p $HOME/lib/dotfiles/emacs.d/backup-files/
# }}}
# {{{ Mail
#cd
#rm .mutt .goobookrc .mairixrc .msmtprc .offlineimaprc .fdm.conf
#ln -s ~/lib/mail/offlineimaprc .offlineimaprc
#ln -s ~/lib/mail/goobookrc .goobookrc
#ln -s ~/lib/mail/mairixrc .mairixrc
#ln -s ~/lib/mail/msmtprc .msmtprc
#ln -s ~/lib/mail/fdm.conf .fdm.conf
#ln -s ~/lib/mail/mutt .mutt
# }}}
# {{{ Python
#sudo pip install virtualenv
#pip install --install-option="--user" virtualenvwrapper
#hg clone http://bitbucket.org/dhellmann/virtualenvwrapper ~/lib/python/virtualenvwrapper
#cd ~/lib/python/virtualenvwrapper
#sudo python setup.py install
# mkdir -p $HOME/lib/{python,virtualenvs}
# ln -s ~/lib/virtualenvs/ ~/.virtualenvs
# pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
git clone https://github.com/pyenv/pyenv-pip-migrate.git ~/.pyenv/plugins/pyenv-pip-migrate
git clone https://github.com/yyuu/pyenv-ccache.git ~/.pyenv/plugins/pyenv-ccache
# }}}
#{{{ Other repos
# git clone git@github.com:saimn/color-theme-wombat.git ~/lib/color-theme-wombat
# git clone https://github.com/mitsuhiko/flask-sphinx-themes.git ~/lib/flask-sphinx-themes
# git clone git://gitorious.org/mutt-notmuch/mutt-notmuch.git ~/lib/mutt-notmuch
# git clone https://github.com/apenwarr/sshuttle.git ~/lib/sshuttle
# git clone https://github.com/gfxmonk/supergenpass.git ~/lib/supergenpass
git clone https://github.com/thayerwilliams/vimbrant.git ~/lib/vimbrant
# hg clone http://bitbucket.org/sjl/hg-prompt/ ~/lib/hg-prompt
# hg clone https://bitbucket.org/sjl/mercurial-cli-templates ~/lib/mercurial-cli-templates
# }}}