An Interest In:
Web News this Week
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
March 26, 2022 06:59 pm GMT
Original Link: https://dev.to/danielbellmas/the-only-3-plugins-youll-ever-need-for-your-terminal-1bg4
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.
- Install zsh with brew (Homebrew):
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:
Now, the plugins
zsh-autosuggestions
- 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:
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
Activate the plugin in
~/.zshrc
:plugins=( # other plugins...zsh-autosuggestionszsh-syntax-highlighting)
Restart zsh
spaceship-prompt
- 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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To