Last active
September 15, 2022 12:39
-
-
Save JorgeMGuimaraes/f19bf1ef50cdabbe5bcc84d1d12afd84 to your computer and use it in GitHub Desktop.
Install Zsh shell and OhMyZsh Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script depends on manual interaction | |
# Variables | |
GIT_URL='https://github.com/zsh-users' | |
PLUGIN_AS='zsh-autosuggestions' | |
PLUGIN_SH='zsh-syntax-highlighting' | |
# Install dependencies and Zsh shell | |
sudo apt update | |
sudo apt install -y \ | |
curl \ | |
git \ | |
zsh | |
# Install | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# Download and install plugins | |
git clone $GIT_URL/$PLUGIN_AS.git $ZSH_CUSTOM/plugins/$PLUGIN_AS | |
git clone $GIT_URL/$PLUGIN_SH.git $ZSH_CUSTOM/plugins/$PLUGIN_SH | |
# Update .zshrc data | |
sed -i "s#ZSH_THEME=\"robbyrussell\"#ZSH_THEME=\"bira\"#g" $HOME/.zshrc | |
sed -i "s#plugins=(git)#plugins=(git $PLUGIN_AS $PLUGIN_SH)#g" $HOME/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment