Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 26, 2022 06:59 pm GMT

The Only 3 Plugins You'll Ever Need For Your Terminal

Maximizing the tools you are already using (or adding new ones) is all we're about!

Before we start we all need to have zsh installed.

What is zsh you ask?

ZSH, also called the Z shell, is an extended version of the Bourne Shell (sh), with plenty of new features, and support for plugins and themes. Since its based on the same shell as Bash, ZSH has many of the same features, and switching over is a breeze.

brew install zsh
  • Install oh-my-zsh (framework for managing your zsh configuration):
sh -c "$(curl -fsSLhttps://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Hopefully, everything went well and you're seeing this screen now:
oh my zsh screen

Now, the plugins

zsh-autosuggestions

zsh-autosuggestions preview

  • Clone this repository:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  • Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=( # other plugins...zsh-autosuggestions)
  • Close the terminal and start a new terminal session, to see the plugin in action

zsh-syntax-highlighting

Some examples:

Before:Before

After:After

  1. Clone this repository in oh-my-zsh's plugins directory:

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  2. Activate the plugin in ~/.zshrc:

    plugins=( # other plugins...zsh-autosuggestionszsh-syntax-highlighting)
  3. Restart zsh

spaceship-prompt

spaceship-prompt preview

  • Clone this repo:
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
  • Symlink spaceship.zsh-theme to your oh-my-zsh custom themes directory:
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
  • Set ZSH_THEME="spaceship" in your .zshrc.

That's it! You're all set now


Original Link: https://dev.to/danielbellmas/the-only-3-plugins-youll-ever-need-for-your-terminal-1bg4

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To