Make your terminal more productive and attractive! using "oh my zsh" and auto completion


 1. Install Zsh if you don't have it already (running zsh --version in your terminal) 

sudo chsh -s $(which zsh)

2. Install OhMyZsh by running the following command in terminal.

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

3. Installing Autosuggessions

i). Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

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

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

plugins=(zsh-autosuggestions)if you have existing plugings :
plugins=(git zsh-autosuggestions)


Optional: 

1. Use can use iterm2 using the link here and perform the above steps.

2. Install the Powerlevel10k theme.

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

b. configure it using command: p10k configure

Resources:

1. https://chamikakasun.medium.com/iterm2-zsh-oh-my-zsh-the-most-power-full-terminal-on-macos-2021-guide-macos-big-sur-5bb498976dc9

2. https://dev.to/kumareth/a-beginner-s-guide-for-setting-up-autocomplete-on-ohmyzsh-hyper-with-plugins-themes-47f2

Comments