You can use the different themes on your terminal with zsh shell. In new Operating Systems of Mac, Zsh is coming as a default shell now.

Unleash your terminal power with these tools

  • Last Modified: 14 Nov, 2022

Oh-My-Zsh

website: https://ohmyz.sh/

You can use the different themes on your terminal with zsh shell. In new Operating Systems of Mac, Zsh is coming as a default shell now.

Install

You will need to run the following commands to install the zsh in your terminal

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
source ~/.zshrc

Set your theme

Once you have installed and sourced the terminal, you can change the theme of the zsh terminal. You can check the full list of available themes here

Because I love the simplicity in my terminal so I like gnzh better than others, so I will update the theme name in the ~/.zshrc

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="gnzh"

zsh-autosuggestions

https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md

╰─➤  git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions                                                                                127 ↵

Cloning into '/Users/karandeepsingh/.oh-my-zsh/custom/plugins/zsh-autosuggestions'...
remote: Enumerating objects: 2435, done.
remote: Counting objects: 100% (50/50), done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 2435 (delta 21), reused 21 (delta 7), pack-reused 2385
Receiving objects: 100% (2435/2435), 566.38 KiB | 830.00 KiB/s, done.
Resolving deltas: 100% (1552/1552), done.

Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

plugins=( 
    # other plugins...
    zsh-autosuggestions
)

source the ~/.zshrc

...



See Also

comments powered by Disqus