-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·37 lines (28 loc) · 1.23 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
#!/bin/bash
if ! [ -x "$(command -v zsh)" ]; then
sudo apt install zsh -y
fi
if ! [ -x "$(command -v curl)" ]; then
sudo apt install curl -y
fi
if ! [ -x "$(command -v grc)" ]; then
sudo apt install grc -y
fi
if ! [ -x "$(command -v fzf)" ]; then
sudo apt install fzf -y
fi
chsh -s $(which zsh)
if sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended; then
echo "Oh My Zsh installed !"
cp $PWD/Bigyls.zsh-theme ~/.oh-my-zsh/themes
cp $PWD/zshrc ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
echo -e "\n\n\033[0;31m Pealse logout/login to finish the installation \033[0m"
else
cp $PWD/Bigyls.zsh-theme ~/.oh-my-zsh/themes
cp $PWD/zshrc ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
echo -e "\n\n\033[0;31m Pealse logout/login to finish the installation \033[0m"
fi