install-zsh/zsh_install.sh

24 lines
670 B
Bash
Raw Normal View History

2022-08-30 12:11:37 +02:00
#!/bin/bash
2022-08-30 12:26:44 +02:00
echo Installing Dependencies
2022-08-30 12:15:32 +02:00
if [ -f /etc/rocky-release ]; then
sudo dnf install zsh git curl
elif [ -f /etc/arch-release ]; then
sudo pacman -S zsh git curl
fi
2022-08-30 12:26:44 +02:00
echo Installing Oh My ZSH
2022-08-30 12:33:35 +02:00
export RUNZSH=no; sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
2022-08-30 12:11:37 +02:00
2022-08-30 12:26:44 +02:00
echo Switching Theme
2022-08-30 12:11:37 +02:00
sed -i 's/ZSH_THEME=.*/ZSH_THEME="bureau"/' ~/.zshrc
2022-08-30 12:26:44 +02:00
echo Enabling Plugins
2022-08-30 12:11:37 +02:00
sed -i 's/plugins=(git)/plugins=(\ngit\nzsh-autosuggestions\n)/' ~/.zshrc
2022-08-30 12:26:44 +02:00
echo Installing AutoSuggestions
2022-08-30 12:23:31 +02:00
zsh -c "git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
2022-08-30 12:26:44 +02:00
echo Running Zsh
2022-08-30 12:11:37 +02:00
zsh