-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall
executable file
·27 lines (21 loc) · 1.05 KB
/
install
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
#/usr/bin/sh
if [[ $(ls -a /home/$USER/ | grep -w ".oh-my-zsh") = ".oh-my-zsh" ]]; then
if [[ $OSTYPE == "linux-gnu"* ]]; then
cp ./src/dino.zsh-theme /home/$USER/.oh-my-zsh/themes
if [[ $(ls -a /home/$USER/.local/share/ | grep -w "fonts") != "fonts" ]]; then
mkdir -p /home/$USER/.local/share/fonts/
fi
cp "./fonts/Noto Emoji Nerd Font Complete.ttf" "/home/$USER/.local/share/fonts"
fc-cache
echo "##################################################################"
echo "#### NOW CHANGE THE THEME ####"
echo "#### Edit the file ~/.zshrc ####"
echo "#### ZSH_THEME=\"dino\" ####"
echo "#### and look the magic ####"
echo "##################################################################"
else
echo "ERROR: This theme is not supported on platforms other than linux-gnu"
fi
else
echo "ERROR: Please install Oh-my-zsh (https://github.com/ohmyzsh/ohmyzsh)"
fi