How to setup Oh-My-Zsh

Install support application

apt install git curl wget zsh

Install zsh

  • via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • via wget
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Change zsh settings

  • change theme
#change theme froy robbyrussell to agnoster
sed -i 's/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"agnoster\"/g' ~/.zshrc
  • change plugin support
sed -i 's/plugins=(git)/plugin=(\n\tgit\n\tboundler\n\tdotenv\n\trake\n\trbenv\n\truby\n\tpython\n)/g' ~/.zshrc

Switch default bash to zsh

chsh -s /bin/zsh