My favorite shell

How do you like your shell? This is how I like mine…

“Oh My Zsh!” with plugins and Atuin for some magical shell history.


Installation of “Oh My Zsh!”

sudo apt update
sudo apt install zsh
sudo apt install curl
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install plugins

I use two plugins.

  • Auto Suggestions
  • Syntax Highlighting*

Auto suggestions

Auto suggestions completes commands with earlier typed commands. When the right one is suggested, just press the right arrow or TAB and the command is completed.

Install

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

Syntax highlighting

Syntax highlighting validates commands, for example executables are coloured green when they are valid.

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

Add the plugins to your profile

Oh My Zsh! settings are stored in ~/.zshrc

Find plugins= and add your plugins.

nano ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

Close and start your session. Enjoy.


Install Atuin

https://github.com/atuinsh/atuin
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh

Leave a Comment