Want your terminal to display information about GIT? If the answer is |
Check if Zsh is installed
Every new Mac uses the Z shell (Zsh) by default, but if it is not available to your system install it using Homebrew.
echo $SHELL
Expected result of the echo $SHELL
command : /bin/zsh
Install zsh using Homebrew(if it is not installed):
brew install zsh
# Set zsh as your default shell
chsh -s $(which zsh)
Install Oh My Zsh
Open terminal, run the command
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Modify your Oh My Zsh settings
The configuration file for zsh is called .zshrc and lives in your home folder (~/.zshrc).
locate that file and open it
open ~/.zshrc
Modify your Plugins
Add plugins to your shell by adding the name of the plugin to the plugin array in the ~/.zshrc
file. Separate the names of plugins with a space
plugins=(git)
Change your Theme
Changing theme is as simple as changing a string in your configuration file. The default theme is robbyrussell
. Just change that value to the change theme, and don't forget to .
ZSH_THEME=pygmalion
Apply your changes
To apply the changes you have made to the theme or plugins you need to either
start a new shell instance
reload the configuration for the current shell
#reload configuration
source ~/.zshrc
Install fonts:
You must select a font in the Terminal Preferences, under Profiles, for your zsh theme to display properly
Most Zsh themes use the powerline fonts, so let's install them.
** Install powerline fonts **
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
Change Font in the Mac OS X Terminal
Image of Terminal without font |
Open Terminal, then navigate to Terminal Preferences > Profiles > Font , then click the
Change
button.Select
Ubuntu Mono derivative Powerline
and set the font size to your liking.Close preferences, and quit Terminal.
Expected Result: Image of Terminal with font |
Change Font for Terminal in Visual Studio Code?
Image of Terminal in Visual Studio Code without font |
Open settings.json in VSCode
Press command + shift + p
in your VSCode window. Then, search for settings.json
and open it.
Add this line to the settings.json
:
{
"terminal.integrated.defaultProfile.osx": "zsh",
"terminal.integrated.fontFamily": "Ubuntu Mono derivative Powerline",
"terminal.integrated.fontSize": 12
}
Image of Terminal in Visual Studio Code with font |
Top comments (4)
this is cool
To setup in mac teminal.
to get the simlar color like cobalt2 you can follow this step. github.com/jabranr/cobalt2-like/tr...
and follow the above stem
Thank you.
Thanks a lot🥹