The Nerd Fonts installer provides cross-platform scripts to easily install Nerd Fonts from the command line. It includes a bash script for Linux and macOS systems, and a PowerShell script for Windows systems.
- Linux/macOS: Bash script (
install.sh
) with system-wide font installation - Windows 10/11: PowerShell script (
install.ps1
) with user-level font installation
- Interactive menu with all 51+ Nerd Fonts
- Colored output for better user experience
- Input validation and error handling
- Automatic cleanup of temporary files
- Linux/macOS: Installs to
~/.fonts/
and refreshes font cache - Windows: Installs to
%LOCALAPPDATA%\Microsoft\Windows\Fonts
and registers with system
- Supports both
.ttf
and.otf
font files - Downloads latest versions from GitHub releases
- Handles font extraction and installation automatically
- Windows 10: Version 1903 (May 2019 Update) or later
- Windows 11: All versions supported
- PowerShell: 5.1+ or PowerShell Core 6+
The Windows PowerShell script has been tested on:
- Windows 10 Pro for Workstations (Build 26100)
- PowerShell Core 7.5.2
- PowerShell 5.1 (Windows PowerShell)
- All modern Linux distributions with Bash 3.2+
- macOS 10.9+ (Mavericks) or later
Download or install the Nerd Fonts with the Nerd Fonts Installer script. To install Nerd Fonts, run the following script.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/officialrajdeepsingh/nerd-fonts-installer/main/install.sh)"
For Windows users, use the PowerShell version of the installer.
Requirements:
- Windows 10 (version 1903 or later) or Windows 11
- PowerShell 5.1+ or PowerShell Core 6+
# Run in PowerShell (requires PowerShell Core 6+ or Windows PowerShell 5.1+)
iex "& { $(iwr -useb 'https://raw.githubusercontent.com/officialrajdeepsingh/nerd-fonts-installer/main/install.ps1') }"
Or download and run locally:
# Download the script
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/officialrajdeepsingh/nerd-fonts-installer/main/install.ps1' -OutFile 'install.ps1'
# Run the script
.\install.ps1
After selecting your nerd font, it starts downloading into the system. The PowerShell version installs fonts to the user's local fonts directory and attempts to register them with Windows.