Tired of the good ol' boring looking terminal? Do you want to try something different and funky then you should definitely try Oh-my-zsh! As developers, we can't deny the fact that the Command line terminal is part of our existence.
Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that will make you shout.
* Disclaimer: Oh My Zsh works best on macOS and Linux.
Unix-like operating system (macOS or Linux)
Zsh should be installed (v4.3.9 or more recent).
sudo apt-get install zshIf not pre-installed (zsh --version to confirm), curl or wget should be installed
git should be installed
$ sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Now we have zsh and oh-my-zsh installed next step is to go ahead with configuration.
Oh-My-Zsh comes bundled with several themes located in
~/.zshrc/themes which can be enabled by adding the name of the theme in the ~/.zshrc file.
# nano ~/.zshrc # This can be changed to whatever theme is preferred ZSH_THEME="agnoster"
Oh-my-zsh also includes a handful of plugins available to help make development faster and easier. One of my best is the fact that auto-completion works out of the box. You would not need to type a whole command just hitting tab helps by suggesting possible command related to your needs.
Another awesome thing to try is the zsh-syntax-highlighting This package provides syntax highlighting for the shell zsh. It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.
You can easily switch between bash and zsh by running this command
# switching from zsh to bash exec bash
# switching from bash to zsh exec zsh
There you go, I hope after reading this you switch from whatever shell you were using to zsh and also try out oh-my-zsh they are both awesome.🚀
Feel free to share your comments and thoughts.
Originally posted at giftegwuenu.com