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 itβs 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 -fsSL
https://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-autosuggestions zsh-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 π¦Ύ
Top comments (4)
Thanks for sharing!!
Great I already use them all!
Awesome! Thanks for sharing
nice π thank you