-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
38 lines (32 loc) · 1.27 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
#!/usr/bin/env bash
# save previous zshrc
mv -v ~/.zsh ~/.zsh.orig
# setup oh my zsh
echo "Setup OH MY ZSH"
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
curl -fLo ~/.oh-my-zsh/custom/bullet-train.zsh-theme --create-dirs http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme
sudo usermod --shell /bin/zsh $USER
# setting up git
git config --global user.email "dev@erfan.io"
git config --global user.name "erfanio"
# create necessary directories
mkdir -v ~/.config 2>/dev/null
mkdir -v -p ~/.tmux/plugins 2>/dev/null
mkdir -v -p ~/dotfiles/.vim/temp/undodir 2>/dev/null
# symlinks
ln -v -s ~/dotfiles/.zshrc ~/.zshrc
touch ~/.zshrc_custom
ln -v -s ~/dotfiles/.vim ~/.vim
ln -v -s ~/dotfiles/.tmux.conf ~/.tmux.conf
ln -v -s ~/dotfiles/termite ~/.config/termite
# load tmux package manager
echo "Installing TPM"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# load vim plug (package manager)
echo "Installing VIM PLUG"
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "
TODO:
- Install tmux plugins by pressing prefix + I in tmux, allow a few seconds and close tmux
- Install vim plugins by opening vim and running :PlugInstall
"