How to Setup Oh My Zsh

How to setup Oh-My-Zsh

Install support application

1
apt install git curl wget zsh

Install zsh

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

Change zsh settings

  • change theme
1
2
#change theme froy robbyrussell to agnoster
sed -i 's/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"agnoster\"/g' ~/.zshrc
  • change plugin support
1
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

1
chsh -s /bin/zsh
Licensed under CC BY-NC-SA 4.0
Last updated on Nov 08, 2024 12:49 UTC
Built with Hugo
Theme Stack designed by Jimmy