Well, I choose Dracula theme (a dark theme) for my Terminal.app. there are many more in the lysyi3m/macos-terminal-themes repository. The installation steps are the same, just choose the right for you.
Here are the steps to install the Dracula colour theme:
- Download the Dracula File, unzip it.
- Now in Terminal.app, open Preferences…, and switch to Profiles tab.
- Click the Gear icon (⚙︎) at the bottom-left corner.
- Click Import…
- Select the
Dracula.terminalfile in the folder you just downloaded.
- Click Default to make this colour theme default. Then restart the Terminal.app.
I also used this colour theme for VS Code, just fine…
Zsh is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original features were added.
Install it via brew:
brew install zsh
Then change the default shell to zsh rather than bash (the default on Mac OSX), run the following command in terminal:
chsh -s /bin/zsh
cd ~ touch .zshrc echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons). Specifically to add a high number of extra glyphs from popular ‘iconic fonts’ such as Font Awesome ➶, Devicons ➶, Octicons ➶, and others.
This font includes lots of icons, which makes the terminal more interactive.
Since I also need Fira Code, I chose to install the
brew tap caskroom/fonts brew cask install font-firacode-nerd-font
Next, enable this font in Terminal.app:
Preferences > Profiles > Text > Font > Change... > FuraCode Nerd Font
Don’t be surprised by the name of the font in the options, it’s a RFN (Reserved Font Name) for Fira Code Nerd Font.
If you’re also use VS Code, don’t forget to update the font settings for terminal in VS Code to make Nerd Fonts working.
There are many themes for zsh, one of my favourites is powerlevel9k, follow the steps to install it:
echo "POWERLEVEL9K_MODE='nerdfont-complete'" >> ~/.zshrc git clone https://github.com/bhilburn/powerlevel9k.git ~/.powerlevel9k echo 'source ~/.powerlevel9k/powerlevel9k.zsh-theme' >> ~/.zshrc
Notice that I used a hidden folder
.powerlevel9k for storing the files. Also, the font needs to be set before powerlevel9k is initialised in the
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh POWERLEVEL9K_MODE='nerdfont-complete' source ~/.powerlevel9k/powerlevel9k.zsh-theme POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh dir vcs newline status) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
There is even a Show Off Your Config page, you can find other developer’s custom configurations for powerlevel9k. These configurations also affect the appearance of terminal inside VS Code.
Well, that’s all for my current configurations in Terminal.app, enjoy it and happing coding…terminal zsh powerlevel9k