-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.sh
executable file
·40 lines (29 loc) · 2.22 KB
/
INSTALL.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
#!/bin/bash
# source : https://github.com/alejandromume/ubunly-zsh-theme/blob/main/INSTALL.sh
RED='\033[0;31m'
Green='\033[1;32m'
ORANGE='\033[1;33m'
BOLD_CYAN='\033[1;36m'
NC='\033[0m' # No Color
zsh_custom_directory="$HOME/.oh-my-zsh/custom"
cp ninik.zsh-theme $zsh_custom_directory/themes
printf "${BOLD_CYAN}\n\n[-] ${NC}Installing Theme...\n\n"
printf "╔══════════════════════════════════════════════════════════════════════════════════╗ \n"
printf "║ Remeber to add ${BOLD_CYAN}zsh-autosuggestions${NC} and ${BOLD_CYAN}zsh-syntax-highlighting${NC} to your plugins ║ \n"
printf "╚══════════════════════════════════════════════════════════════════════════════════╝ \n\n"
if [ ! -d "/usr/share/zsh-autosuggestions" ] || [ ! -d "$zsh_custom_directory/plugins/zsh-autosuggestions" ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions.git $zsh_custom_directory/plugins/zsh-autosuggestions --quiet
sudo cp -r $zsh_custom_directory/plugins/zsh-autosuggestions /usr/share/
else
printf "${RED}[-] ${NC}zsh-autosuggestions is alredy installed\n"
fi
if [ ! -d "/usr/share/zsh-syntax-highlighting" ] || [ ! -d "$zsh_custom_directory/plugins/zsh-syntax-highlighting" ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $zsh_custom_directory/plugins/zsh-syntax-highlighting --quiet
sudo cp -r $zsh_custom_directory/plugins/zsh-syntax-highlighting /usr/share/
else
printf "${RED}[-] ${NC}zsh-syntax-highlighting is alredy installed\n"
fi
printf "\n${Green}[✱] ${ORANGE}NINIK ZSH Theme ${Green}Installed successfully!${NC}\n\n"
printf "╔═════════════════════════════════════════╗ \n"
printf "║ Set ${ORANGE}ninik ${NC}as ZSH_THEME in your .zshrc ║ \n"
printf "╚═════════════════════════════════════════╝ \n\n"