-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshsetup.sh
32 lines (23 loc) · 990 Bytes
/
.zshsetup.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
#!/usr/bin/env bash
# Assumes you have already used homebrew to install zsh
# Switch shell to zsh
chsh -s /usr/local/bin/zsh
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install Powerlevel9K statusline plugin
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
# Install autocomplete suggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# add plugins=(zsh-autosuggestions)
# Install extensions
brew install zsh-syntax-highlighting
brew install zsh-completions
echo "Moving zsh config files to user root"
# Get and use pre-configured .zshrc file
sudo yes | cp -rf .zshrc ~/.zshrc
# Copy our aliases file to user root
sudo yes | cp -rf .zsh_aliases ~/.zsh_aliases
# reload .zshrc
source ~/.zshrc
# Install the font from awesome-terminal-fonts & .fonts.sh
# Select hack font 14pt