install-zsh/zsh_install.sh

18 lines
506 B
Bash

#!/bin/bash
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
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sed -i 's/ZSH_THEME=.*/ZSH_THEME="bureau"/' ~/.zshrc
sed -i 's/plugins=(git)/plugins=(\ngit\nzsh-autosuggestions\n)/' ~/.zshrc
zsh -c "git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
zsh