-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.sh
executable file
·36 lines (31 loc) · 1.09 KB
/
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
#!/bin/zsh
C_DEFAULT="\x1B[39m"
C_GREEN="\x1B[32m"
C_LIGHTGRAY="\x1B[90m"
omz_plugins=(
'tinted-theming/base16-shell'
'zsh-users/zsh-autosuggestions'
'zsh-users/zsh-completions'
'zsh-users/zsh-syntax-highlighting'
)
if [ -d ~/.config/base16-fzf ]; then
echo -e "${C_LIGHTGRAY}base16-fzf is installed$C_DEFAULT"
else
echo -e "${C_GREEN}Installing base16-fzf...$C_DEFAULT"
git clone https://github.com/tinted-theming/base16-fzf ~/.config/base16-fzf
fi
if [ -d ~/.oh-my-zsh/custom/themes/powerlevel10k ]; then
echo -e "${C_LIGHTGRAY}powerlevel10k is installed$C_DEFAULT"
else
echo -e "${C_GREEN}Installing powerlevel10k...$C_DEFAULT"
git clone https://github.com/romkatv/powerlevel10k ~/.oh-my-zsh/custom/themes/powerlevel10k
fi
for plugin in $omz_plugins; do
plugin_name=$(echo $plugin | cut -d '/' -f 2)
if [ -d ~/.oh-my-zsh/custom/plugins/$plugin_name ]; then
echo -e "${C_LIGHTGRAY}$plugin_name is installed$C_DEFAULT"
else
echo -e "${C_GREEN}Installing $plugin_name...$C_DEFAULT"
git clone https://github.com/$plugin ~/.oh-my-zsh/custom/plugins/$plugin_name
fi
done