-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_once_install-zsh-plugins.sh
38 lines (28 loc) · 1.1 KB
/
run_once_install-zsh-plugins.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
#!/bin/bash
ZSH="$HOME/.oh-my-zsh"
ZSH_CUSTOM="$ZSH/custom"
ZSH_PLUGINS="$ZSH_CUSTOM/plugins"
if [ ! -d "$ZSH" ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
if [ ! -d "$ZSH_PLUGINS/zsh-completions/" ]; then
git clone https://github.com/zsh-users/zsh-completions "$ZSH_PLUGINS/zsh-completions/"
fi
if [ ! -d "$ZSH_PLUGINS/fzf-tab" ]; then
git clone https://github.com/Aloxaf/fzf-tab "$ZSH_PLUGINS/fzf-tab"
fi
if [ ! -d "$ZSH_PLUGINS/zsh-autosuggestions" ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions "$ZSH_PLUGINS/zsh-autosuggestions"
fi
if [ ! -d "$ZSH_PLUGINS/zsh-syntax-highlighting" ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$ZSH_PLUGINS/zsh-syntax-highlighting"
fi
if [ ! -d "$ZSH_CUSTOM/resources" ]; then
mkdir "$ZSH_CUSTOM/resources"
fi
if [ ! -d "$ZSH_CUSTOM/resources/zsh-syntax-highlighting" ]; then
git clone https://github.com/catppuccin/zsh-syntax-highlighting.git "$ZSH_CUSTOM/resources/zsh-syntax-highlighting"
fi
if [ ! -d "$HOME/bin/" ]; then
mkdir "$HOME/bin/"
fi