-
Notifications
You must be signed in to change notification settings - Fork 0
/
switch_to_zsh.sh
executable file
·38 lines (38 loc) · 1.87 KB
/
switch_to_zsh.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
#!/bin/bash
#set -e
echo "#####################################"
echo "Setting up ZSH With p10k & OMZ Plugins"
echo "#####################################"
sleep 2
echo "Step 1 - Grabing Necessary Fonts"
echo "#####################################"
sudo pacman -S --needed --noconfirm zsh grml-zsh-config
yay -S --noconfirm nerd-fonts-meslo siji-git ttf-unifont noto-color-emoji-fontconfig xorg-fonts-misc ttf-dejavu ttf-meslo-nerd-font-powerlevel10k noto-fonts-emoji powerline-fonts
sleep 2
echo "Step 2 - Grabing OhMyZsh & Plugins"
echo "#####################################"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sleep 2
echo "Step 3 - Grabing PowerLevel10k Theme"
echo "#####################################"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
cd $HOME/ && wget https://raw.githubusercontent.com/xerolinux/xero-fixes/main/conf/.p10k.zsh
sleep 2
echo "Step 4 - Setting Default Shell to ZSH"
echo "#####################################"
sudo chsh $USER -s /bin/zsh
cd $HOME/.local/share/konsole/
sed -i 's|/bin/bash|/bin/zsh|g' XeroLinux.profile
sleep 2
echo "Step 5 - Importing XeroLinux .zshrc"
echo "#####################################"
cd $HOME/
rm .zshrc
wget https://raw.githubusercontent.com/xerolinux/xero-fixes/main/conf/.zshrc
sleep 2
echo "#####################################"
echo " Done ! Now Logout & back in "
echo "#####################################"