I likeNerd Fontsa lot, andblogged about those in the past. If you spend a lot of time in the terminal, you’ve probably heard of them: they patch popular programming fonts with a huge set of icons, making your terminal and development environment look great and more informative.
Here’s how you can easily install Nerd Fonts on macOS usingHomebrew.
Step 1: Install Homebrew (if you haven’t already)
If you don’t have Homebrew installed, open your terminal and run:
1 2 | /bin/bash-c"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
Step 2: Installfontconfig
Before installing fonts, it’s a good idea to havefontconfig:
1 2 | brewinstallfontconfig |
Step 3: Install Nerd Fonts with Homebrew Cask
Homebrew makes it easy to install fonts with the--caskoption. Here’s how I install my favorite Nerd Fonts:
1 2 3 4 5 6 | brewinstall--cask\ font-jetbrains-mono-nerd-font\ font-caskaydia-cove-nerd-font\ font-iosevka-term-nerd-font\ font-fira-mono-nerd-font |
You can add or remove fonts from this list as you prefer. Homebrew will handle downloading and installing them for you.
Step 4: Use Your New Fonts
After installation, open your terminal or code editor’s settings and select your preferred Nerd Font from the font list. Now you can enjoy enhanced icons and a better coding experience!
Tip:You can browse all available Nerd Fonts with:
1 2 | brewsearchnerd-font |
Happy fonts! 🙂