aboutsummaryrefslogtreecommitdiff
path: root/scripts/omz.sh
blob: 7dd94c3212098828cec1218f9f4b69b2fd98147c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env zsh
# Install OMZ
set -e
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Powerline fonts
mkdir -p /tmp/fonts/
git clone https://github.com/powerline/fonts.git --depth=1 /tmp/fonts/
chmod +x /tmp/fonts/install.sh
bash /tmp/fonts/install.sh
rm -rf /tmp/fonts/

sleep 2s

# Install plugins
git clone --depth 1 -- https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth 1 -- https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autocomplete

# Overwrite zshrc
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cp "$REPO_ROOT/.zshrc" "$HOME/.zshrc"