-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·43 lines (34 loc) · 1.05 KB
/
init.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
export CWD=$PWD
# install required packages
pkgs="build-essential git tmux vim zsh wget curl python-dev libsm6 libxext6 libxrender-dev tree"
pips="progressbar ipython ptpython pudb scipy numpy scikit-learn opencv-python"
echo "Updating package lists..."
apt-get update
echo "Installing core packages..."
for i in $pkgs; do
apt-get install -y $i
done
echo "Installing pips."
for i in $pips; do
pip install --upgrade $i
done
# install oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# installing vim plugins
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
git clone https://github.com/epeli/slimux.git
# get some sane defaults
echo "Grabbing sane defaults"
cd ~
git clone https://github.com/msollami/dotfiles.git
echo "Installing sane defaults"
cd dotfiles
./install.sh
# switch shell to zsh
echo "switching to zsh"
chsh -s $(which zsh)
zsh
cd $CWD