-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·42 lines (35 loc) · 1.38 KB
/
setup.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
# Check if zsh is available
# if yes set as default shell
# if not install zsh
# Getting oh-my-zsh
# TODO: To change default shell to zsh first before downloading oh-my-zsh
sudo chsh -s `which zsh`
# if zsh not present, download zsh
#sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Backing up existing configs
mkdir -p $HOME/backup_config
backup=$HOME/backup_config
# Making Directory tree for vim plugins
mkdir -p $HOME/.vim/autoload
curl -flo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mv $HOME/.vimrc $backup
mv $HOME/.aliases* $backup
mv $HOME/.zshrc $backup
mv $HOME/.tmux.conf $backup
echo "This script needs to be ran inside the rc_po directory."
repo=`pwd`
echo $repo
echo "Linking vim"
ln -s -f $repo/.vimrc $HOME/.vimrc
ln -s -f $repo/.vimpressrc $HOME/.vimpressrc
echo "Linking zshrc"
ln -s -f $repo/.zshrc $HOME/.zshrc
ln -s -f $repo/.aliases_zsh $HOME/.aliases_zsh
echo "Linking tmux"
ln -s -f $repo/.tmux.conf $HOME/.tmux.conf
# ZSH config
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# Setup workspace
# TODO