-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·45 lines (27 loc) · 1.29 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
43
44
45
#!/usr/bin/env bash
info() {
tput bold;tput setaf "6";tput setab "7";echo "$1";tput sgr0;tput el;
}
info "Installing zsh..."
sudo apt-get install zsh -y
command -v zsh | sudo tee -a /etc/shells
info "Changing your shell to zsh..."
sudo chsh -s $(which zsh) $USER
info "Installing oh-my-zsh..."
# NOTE: This variable is also used to locate the oh-my-zsh directory.
export ZSH="$HOME/.oh-my-zsh"
rm -rf "$ZSH"
# NOTE: We only clone the repo, the `.zshrc` file is only defined in the
# `dotfiles` directory
git clone https://github.com/ohmyzsh/ohmyzsh.git "$ZSH"
info "Installing powerlevel10k theme..."
git clone --depth 1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# zsh-autosuggestions
info "Installing zsh-autosuggestions..."
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-autocomplete
info "Installing zsh-autocomplete..."
git clone --depth 1 "https://github.com/marlonrichert/zsh-autocomplete.git" $HOME/.oh-my-zsh/custom/plugins/zsh-autocomplete
# zsh-syntax-highlighting
info "Installing zsh-syntax-highlighting..."
git clone --depth 1 "https://github.com/zsh-users/zsh-syntax-highlighting.git" $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting