-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_server.sh
executable file
·38 lines (26 loc) · 1.03 KB
/
new_server.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
cd ~
echo "installing nice utils"
sudo apt-get install -y git-core zsh curl htop vim ctags ack-grep tig make
echo "installing oh my zsh"
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
echo "getting utils"
git clone https://github.com/mkotsalainen/utils.git ~/utils
echo "install custom zsh stuff"
ln -s ~/utils/matti.zsh ~/.oh-my-zsh/custom/
ln -s ~/utils/matti.zsh-theme ~/.oh-my-zsh/themes/
sed 's/^ZSH_THEME.*/ZSH_THEME="matti"/' -i .zshrc
sed 's/^plugins.*/plugins=(git virtualenv django fabric cp brew autoenv fasd rsync)/' -i .zshrc
echo 'DISABLE_UPDATE_PROMPT=true' >> .zshrc
echo 'DISABLE_AUTO_UPDATE=true' >> .zshrc
echo "installing Vundle. do :BundleInstall to download vim plugins"
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
ln -s ~/utils/.vimrc ~
echo "Installing fasdd"
wget https://github.com/clvv/fasd/archive/1.0.1.tar.gz
tar xvf 1.0.1.tar.gz
cd fasd-1.0.1/
sudo make install
cd ..
rm -rf fasd-1.0.1/ 1.0.1.tar.gz
sudo chsh $(whoami) -s /bin/zsh
echo "all done!"