Skip to content

Instantly share code, notes, and snippets.

@JorgeMGuimaraes
Last active September 15, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JorgeMGuimaraes/f19bf1ef50cdabbe5bcc84d1d12afd84 to your computer and use it in GitHub Desktop.
Save JorgeMGuimaraes/f19bf1ef50cdabbe5bcc84d1d12afd84 to your computer and use it in GitHub Desktop.
Install Zsh shell and OhMyZsh Framework
# 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