Upgrade it with: upgradeohmyzsh Customize your terminal's theme, fonts, colors, and more. To get the best out of zsh, you'll want to install some dependencies. Use a custom theme. Powerlevel10k is a popular theme for zsh. It emphasizes speed, flexibility, and out-of-the-box experience. Install Powerlevel10k for Oh My Zsh with. Zsh is a shell designed for interactive use, although it is also a powerful scripting language. By default, macOs ships with zsh located in/bin/zsh. Let’s install zsh using brew and make iTerm2 use it. Brew install zsh Step 4: Install Oh My Zsh “Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.
If you are using Mac as development machine,
Terminal.app
must be one of the most used apps. Terminal might be not fancy to begin with, but you can totally make it more elegant and fancy if you follow with me.We will be doing these for our Terminal
![Oh My Zsh For Mac Oh My Zsh For Mac](https://maxmasnick.com/media/2011-12-28_developer_tools_for_mac_2011/zsh_shadow2.jpg)
- Install Terminal Profile: Customize Terminal Color
- Install
oh-my-zsh
: Use powerfulzsh
for Terminal, instead ofshell
- Install
oh-my-zsh
themes: Beautifyoh-my-zsh
- Instal
oh-my-zsh
must-have plugins: Get more advanced and convenient features for Terminal
Preparation
Recommend to install
homebrew
first:Install zsh if you are on macOS version prior to Catalina:
Install Terminal Profile
- Go to osx-terminal-theme and download your favorite theme in
scheme
folder - Double click the theme file to install and set as default
Feel free to use my Terminal Profile if you would like to try: https://gist.github.com/tonyxu-io/6b845cb1a53622eb4f1ce4063365e427
Install oh-my-zsh
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout…
Install
oh-my-zsh
:Install oh-my-zsh theme
Built-in themes
Automotive diagnostic software pc.
oh-my-zsh
provides some built-in themes which you can immediately use:- Find your favorite theme in built-in themes list: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
- Set
ZSH_THEME
to your favorite theme name in~/.zshrc
- Activate setting by
source ~/.zshrc
Third-party themes
There are more third-party themes developped for
oh-my-zsh
, find and install them here:Install oh-my-zsh must-have plugins
oh-my-zsh
has many powerful plugins, below are some must-have plugins that will boost your productivity.Sample config:
git
Built-in,use abbreviations for git commands, e.g.
gaa
->git add --all
, use alias | grep git
to get all abbreviations commandsActivate: Add to
~/.zshrc
plugins sectionextract
Built-in, no need to use complicated
tar
to extract zip filesActivate: Add to
~/.zshrc
plugins sectionautojump
Use
j
to quickly jump to a folder, e.g. j Downloads
->cd ~/Downloads
Install:
brew install autojump
Follow instructions and add below line in
~/.zshrc
:zsh-syntax-highlighting
Commands syntax highlight plugin
Install:
brew install zsh-syntax-highlighting
Add
zsh-syntax-highlighting
to ~/.zshtc
plugins sectionOther install guides: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
Oh My Zsh Macos Install
zsh-autosuggestions
Auto complete commands by typing →
Install:
brew install zsh-autosuggestions
Follow instructions and add below line in
~/.zshrc
:My own ~/.zshrc config
If you are a developer, coder, sysadmin or IT Pro I assume that you have used the terminal either on your Unix, Linux, Mac o Windows. And the shell that usually comes as default is the good old faithful BASH shell, which is nice but not cool.
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 other cool things.
Below are some facts about it:
- More than 200 plugins. Enhance your productivity with plugins that integrate into git, google, youtube, sublime and much more.
- More than 1000 contributors. Since its Open Source, the code is available for free on GitHub and you can add your modifications, plugins and themes. Just submit your pull request!
- More than 140. Don’t be a dull bird using the old BASH simple theme. Add colors and other functionalities by using any of the themes.
Check this screen captures:
Oh My Zsh For Mac Free
And these are just some of the ways your terminal or console can look like. Pretty awesome right?
Dude, its a piece of cake. Just go to your Terminal or iTerm2
And type:
This will do the entire process of installing all the required pieces to make it work. Once it finishes you can go ahead and customize the themes & plugins.
As default, Oh-My-ZSH comes with the theme default which is robbyrussell. But if you want to choose a different please go to the Themes page in GitHub. Choose the one you like the most and then use your favorite text editor (nano, vim, emacs, sublimetext or even textedit) to edit the file .zshrc located on your home folder. Below are the commands to open such file on nano & vim:
Then you will have to locate the string:
And change it to the theme that you selected, on this case I chose the theme called Blinks, so I went ahead and edited the .zshrc file and put this string instead of the one above:
Then save the file and exit the editor. Please note that you will NOT see an immediate change on your current session. You would have to start a new terminal session to see the new theme applied there.
What Is Zsh Mac
Now if you are a free soul like me, then you might want to set the value to random, that way each time you open the terminal you will experience a new theme until you find the one that you love the most. To enable this awesomeness simply use this string instead of the two previous ones:
Cool? Dude you know it is cool!
Just like Themes, enabling and disabling plugins is done thru a text editor and your file .zshrc. You will need to look for the string:
Where xxxx can be anything.
Since you are on Mac, I suggest all these plugins to be enabled:
But there are several more, just go to the Plugins page on GitHub to learn about them all.
Please note that the same rule of the themes applies here, you will need to save the file and open a new session to see the plugins enabled.
So that is all folks. Start experimenting with Oh-My-ZSH and help the creator of this awesome shell by buying some swag for you and your friends!
Comment below if I missed anything! Thanks!