Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ebell451/f4eca64951a1585a6d0b65a293d328a4 to your computer and use it in GitHub Desktop.
Save ebell451/f4eca64951a1585a6d0b65a293d328a4 to your computer and use it in GitHub Desktop.

Install Zsh and Oh-my-zsh on Rocky Linux

Based on this article

ALL INSTALLATIONS ASSUME YES WHEN PROMPTED, that's what -y does

This script can be copy paste to ssh as is. No hands installation. :-)

yum install zsh -y
chsh -s /bin/zsh root
echo $SHELL
yum install wget git -y
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

/bin/cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment