If you are using Mac as development machine,
Terminal.app
must be one of the most used apps. Terminal might be not fancy to begin with, but you can totally make it more elegant and fancy if you follow with me.We will be doing these for our Terminal
- Install Terminal Profile: Customize Terminal Color
- Install
oh-my-zsh
: Use powerfulzsh
for Terminal, instead ofshell
- Install
oh-my-zsh
themes: Beautifyoh-my-zsh
- Instal
oh-my-zsh
must-have plugins: Get more advanced and convenient features for Terminal
Preparation
Oh My Zsh Mac Plugin
Recommend to install
homebrew
first:Mac 终端默认 shell 为 bash。zsh 可能是目前最好的 shell ,至于好在哪里可自行百度。本文主要介绍使用 zsh 以及 oh-my-zsh 的配置。. Jul 05, 2020 This video will help developers/enthusiasts to set up and install 'oh-my-zsh' on a MacBook.This is my first technical cast/vlog. This recording is intended to show you how the setup and nothing to. MacOS zsh Completions. ELMO USA | Connecting Minds. Some zsh completion files for macOS specific commands and third party tools. Pull requests and contributions are welcome! Setup and Installation. To use mac-zsh-completions on your Mac, follow these steps: download the project zip or git clone the project.
Install zsh if you are on macOS version prior to Catalina:
Install Terminal Profile
- Go to osx-terminal-theme and download your favorite theme in
scheme
folder - Double click the theme file to install and set as default
Feel free to use my Terminal Profile if you would like to try: https://gist.github.com/tonyxu-io/6b845cb1a53622eb4f1ce4063365e427
Install oh-my-zsh
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout…
Install
oh-my-zsh
:Install oh-my-zsh theme
Built-in themes
oh-my-zsh
provides some built-in themes which you can immediately use:- Find your favorite theme in built-in themes list: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
- Set
ZSH_THEME
to your favorite theme name in~/.zshrc
- Activate setting by
source ~/.zshrc
Third-party themes
There are more third-party themes developped for
oh-my-zsh
, find and install them here:Install oh-my-zsh must-have plugins
oh-my-zsh
has many powerful plugins, below are some must-have plugins that will boost your productivity.Sample config:
git
Built-in,use abbreviations for git commands, e.g.
gaa
->git add --all
, use alias | grep git
to get all abbreviations commandsActivate: Add to
~/.zshrc
plugins sectionextract
Built-in, no need to use complicated
tar
to extract zip filesActivate: Add to
~/.zshrc
plugins sectionautojump
Install:
brew install autojump
Follow instructions and add below line in
~/.zshrc
:zsh-syntax-highlighting
Commands syntax highlight plugin
Install:
brew install zsh-syntax-highlighting
Add
zsh-syntax-highlighting
to ~/.zshtc
plugins sectionOther install guides: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
zsh-autosuggestions
Auto complete commands by typing →
Install:
brew install zsh-autosuggestions
Follow instructions and add below line in
~/.zshrc
: