UNIX – Terminal – Oh My Zsh Setup

| | | | | | | |
# If on something other than Mac you may need to do 'apt install git zsh' or the equivalent 

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cat .zshrc | grep ZSH_THEME
sed -i '.original' 's/ZSH_THEME="robbyrussell"/ZSH_THEME="avit"/gp' ~/.zshrc
cat .zshrc | grep ZSH_THEME

As much as I like Oh My Zsh sometimes you have to go back to original terminal as not all things are supported.

cd ~/
sh .oh-my-zsh/tools/uninstall.sh
rm -rf .oh-my-zsh
rm -rf .zsh-update
rm -rf .zsh_history
rm -rf .zshrc
rm -rf .zshrc.*
rm -rf .zcompdump*
chsh -s /bin/bash

NOTE: This is part of a setup I do for new computers, see HomeBrew – Mac OS Setup

For more information on Oh My Zsh, see https://github.com/robbyrussell/oh-my-zsh

Originally Posted on January 17, 2017
Last Updated on June 12, 2020
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.