DEV Community

Cover image for Terminal setup for speed & ease
ANISH ARAZ
ANISH ARAZ

Posted on

Terminal setup for speed & ease

You, yes you, I'm talking to you my friend. You spend a significant amount of time in terminals typing and running various commands, which sometimes can be time-consuming if the right tools are not used.

Therefore, open up your terminal and follow along to set up your terminal for easy use and faster command execution. (You will never regret this setup)

I have a video on it for someone who enjoys watching.

This is the comparison image of before and after.

Features

  • Syntax highlighting, so mistakes pop up before running
  • auto-suggestion for quickly running previous commands
  • better search tool for searching through your files, previous commands, available command options and more.
  • alias to long commands to you can quickly run commands, for eg, dk for docker

Installation

  1. Install Zsh if you are on bash or something else.
    Link to install instruction https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH

  2. Install ohh-my-zsh, a framework for managing awesome tooling in zsh. Link: https://ohmyz.sh/#install
    It will ask you to use it as the default. Just press Y and enter, then you will be in the zsh shell, where we can start customising it.

Spicing up

  1. Install the auto-suggestion and syntax highlighting plugin
    Link: https://gist.github.com/n1snt/454b879b8f0b7995740ae04c5fb5b7df#install-plugins
    It has 4 plugins, but for now just copy and paste the commands for the first 2, i.e auto-suggestion and syntax highlighting

  2. In your home directory, you will find .zshrc file. Open it and search for plugins. plugins = (git). just add and make it plugins = (git zsh-autosuggestions zsh-syntax-highlighting). and you are all set. Just restart your terminal.

  3. Install fzf - it is a search tool that zsh uses. LInk: https://github.com/junegunn/fzf?tab=readme-ov-file#installation
    after installation, again open .zshrc and add source <(fzf --zsh) just below this line source $ZSH/oh-my-zsh.sh. Now you can use ctrl + r after a terminal restart to search previous commands.

  4. One more cherry on top, https://github.com/Aloxaf/fzf-tab , i leave this for you to explore and figure out. You are welcome!!

And there you have a better terminal with 5 min of setup. Cheers!! 2026

Top comments (1)

Collapse
 
dineshbhagat profile image
DB • Edited

There are few more config options if you would like to explore: dineshbhagat.github.io/mac-configu...