Last active
June 18, 2025 12:34
-
-
Save MovGP0/10e87b630e6c780d9101e342f3a4c707 to your computer and use it in GitHub Desktop.
Installation script for all NerdFonts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define all available Nerd Fonts | |
$fonts = @( | |
'0xProto', '3270', 'Agave', 'AnonymousPro', 'Arimo', 'AurulentSansMono', | |
'BigBlueTerminal', 'BitstreamVeraSansMono', 'CascadiaCode', 'CodeNewRoman', | |
'ComicShannsMono', 'Cousine', 'DaddyTimeMono', 'DejaVuSansMono', | |
'DroidSansMono', 'EnvyCodeR', 'FantasqueSansMono', 'FiraCode', 'FiraMono', | |
'Go-Mono', 'Gohu', 'Hack', 'Hasklig', 'HeavyData', 'Hermit', 'iA-Writer', | |
'IBMPlexMono', 'Inconsolata', 'InconsolataGo', 'InconsolataLGC', 'Iosevka', | |
'IosevkaTerm', 'JetBrainsMono', 'Lekton', 'LiberationMono', 'Lilex', | |
'Meslo', 'Monofur', 'Monoid', 'Mononoki', 'MPlus', 'NerdFontsSymbolsOnly', | |
'Noto', 'OpenDyslexic', 'Overpass', 'ProFont', 'ProggyClean', 'RobotoMono', | |
'ShareTechMono', 'SourceCodePro', 'SpaceMono', 'Terminus', 'Tinos', | |
'Ubuntu', 'UbuntuMono', 'VictorMono' | |
) | |
# Create necessary directories | |
$downloadPath = "$env:TEMP\NerdFonts" | |
$extractPath = "$downloadPath\extracted" | |
New-Item -ItemType Directory -Force -Path $downloadPath | Out-Null | |
New-Item -ItemType Directory -Force -Path $extractPath | Out-Null | |
# Download and install each font | |
foreach ($font in $fonts) { | |
Write-Host "`nProcessing $font..." -ForegroundColor Cyan | |
# Download | |
try { | |
Write-Host "Downloading $font..." | |
$url = "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font.zip" | |
Invoke-WebRequest -Uri $url -OutFile "$downloadPath$font.zip" -UseBasicParsing | |
# Extract | |
Write-Host "Extracting $font..." | |
Expand-Archive -Path "$downloadPath$font.zip" -DestinationPath "$extractPath$font" -Force | |
# Install | |
Write-Host "Installing $font fonts..." | |
Get-ChildItem -Path "$extractPath$font" -Include "*.ttf","*.otf" -Recurse | ForEach-Object { | |
$fontFile = $_.FullName | |
$destFile = Join-Path "$env:WINDIR\Fonts" $_.Name | |
Copy-Item -Path $fontFile -Destination $destFile -Force | |
Write-Host "Installed $($_.Name)" -ForegroundColor Green | |
} | |
# Cleanup zip file | |
Remove-Item "$downloadPath$font.zip" -Force | |
} | |
catch { | |
Write-Host "Failed to process $($font): $($_.Exception.Message)" -ForegroundColor Red | |
} | |
} | |
# Final cleanup | |
Write-Host "`nCleaning up temporary files..." -ForegroundColor Cyan | |
Remove-Item -Path $downloadPath -Recurse -Force | |
Write-Host "`nInstallation completed!" -ForegroundColor Green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oh-my-posh font install 0xProto | |
oh-my-posh font install 3270 | |
oh-my-posh font install AdwaitaMono | |
oh-my-posh font install Agave | |
oh-my-posh font install AnonymousPro | |
oh-my-posh font install Arimo | |
oh-my-posh font install AtkinsonHyperlegibleMono | |
oh-my-posh font install AurulentSansMono | |
oh-my-posh font install BigBlueTerminal | |
oh-my-posh font install BitstreamVeraSansMono | |
oh-my-posh font install CascadiaCode | |
oh-my-posh font install 'CascadiaCode(MS)' | |
oh-my-posh font install CascadiaMono | |
oh-my-posh font install CodeNewRoman | |
oh-my-posh font install ComicShannsMono | |
oh-my-posh font install CommitMono | |
oh-my-posh font install Cousine | |
oh-my-posh font install D2Coding | |
oh-my-posh font install DaddyTimeMono | |
oh-my-posh font install DejaVuSansMono | |
oh-my-posh font install DepartureMono | |
oh-my-posh font install DroidSansMono | |
oh-my-posh font install EnvyCodeR | |
oh-my-posh font install FantasqueSansMono | |
oh-my-posh font install FiraCode | |
oh-my-posh font install FiraMono | |
oh-my-posh font install FontPatcher | |
oh-my-posh font install GeistMono | |
oh-my-posh font install Go-Mono | |
oh-my-posh font install Gohu | |
oh-my-posh font install Hack | |
oh-my-posh font install Hasklig | |
oh-my-posh font install HeavyData | |
oh-my-posh font install Hermit | |
oh-my-posh font install IBMPlexMono | |
oh-my-posh font install Inconsolata | |
oh-my-posh font install InconsolataGo | |
oh-my-posh font install InconsolataLGC | |
oh-my-posh font install IntelOneMono | |
oh-my-posh font install Iosevka | |
oh-my-posh font install IosevkaTerm | |
oh-my-posh font install IosevkaTermSlab | |
oh-my-posh font install JetBrainsMono | |
oh-my-posh font install Lekton | |
oh-my-posh font install LiberationMono | |
oh-my-posh font install Lilex | |
oh-my-posh font install MPlus | |
oh-my-posh font install MartianMono | |
oh-my-posh font install Meslo | |
oh-my-posh font install Monaspace | |
oh-my-posh font install Monofur | |
oh-my-posh font install Monoid | |
oh-my-posh font install Mononoki | |
oh-my-posh font install NerdFontsSymbolsOnly | |
oh-my-posh font install Noto | |
oh-my-posh font install OpenDyslexic | |
oh-my-posh font install Overpass | |
oh-my-posh font install ProFont | |
oh-my-posh font install ProggyClean | |
oh-my-posh font install Recursive | |
oh-my-posh font install RobotoMono | |
oh-my-posh font install ShareTechMono | |
oh-my-posh font install SourceCodePro | |
oh-my-posh font install SpaceMono | |
oh-my-posh font install Terminus | |
oh-my-posh font install Tinos | |
oh-my-posh font install Ubuntu | |
oh-my-posh font install UbuntuMono | |
oh-my-posh font install UbuntuSans | |
oh-my-posh font install VictorMono | |
oh-my-posh font install ZedMono | |
oh-my-posh font install iA-Writer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment