forked from Chrysostomus/manjaro-zsh-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
20 lines (16 loc) · 912 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Clone the repository
git clone https://github.com/mh-firouzjah/zsh-config.git ~/.zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/plugins/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions ~/.zsh/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-history-substring-search ~/.zsh/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting
# Backup the existing .zshrc file
if [ -f ~/.zshrc ]; then
mv ~/.zshrc ~/.zshrc.backup
fi
# Copy the new .zshrc file to the home directory
cp ~/.zsh/.zshrc ~/.zshrc
# Print success message
echo "Zsh configuration installed successfully. Please restart your terminal or run 'source ~/.zshrc' to apply the changes."