-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup-zsh.sh
25 lines (18 loc) · 1018 Bytes
/
setup-zsh.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
#!/bin/bash
# Run this from the home directory
# Install zsh and required fonts
sudo apt-get update
sudo apt install zsh powerline fonts-powerline
# Install Oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Get the solarized dark theme and add it to the config file
curl https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark --output ~/.dircolors
echo "eval `dircolors ~/.dircolors`" >> .zshrc
# Change the Shell theme
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/g' .zshrc
# Add some plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i 's/plugins=(git)/plugins=(git z zsh-syntax-highlighting zsh-autosuggestions)/g' .zshrc
# Set ZSH as the default terminal
chsh -s $(which zsh)