-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
20 lines (16 loc) · 884 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Install ZSH
sudo sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)"
echo "Installed ZSH"
# Install oh-my-zsh
cd $HOME && sh -c "$(wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -- --skip-chsh
echo "Installed oh-my-zsh"
# Rewrite ZSH configuration
rm $HOME/.zshrc
rm $HOME/.oh-my-zsh/themes/robbyrussell.zsh-theme
cp $HOME/dotfiles/oh-my-zsh/.zshrc $HOME/.zshrc
cp $HOME/dotfiles/oh-my-zsh/robbyrussell.zsh-theme $HOME/.oh-my-zsh/themes/robbyrussell.zsh-theme
# additional oh-my-zsh plugins
zsh -c 'git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions'
zsh -c 'git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting'
echo "Done"