Nerd font 필요

This commit is contained in:
Jerry Chae committed 2026-05-14 09:16:32 +09:00
1 parent 666d7c3a9c
commit fb871e7f0a
3 files changed
+76 -12

No files matched your search

+22 -7
View File
@@ -1,11 +1,12 @@
#Requires -Version 5.1
<#
.SYNOPSIS
Installs superfile (terminal file manager) via winget.
Installs superfile (terminal file manager) and JetBrains Mono Nerd Font.
.DESCRIPTION
Installs superfile via winget (yorukot.superfile).
superfile is a modern terminal file manager with vim-style keybindings.
Installs superfile via winget (yorukot.superfile) and
JetBrains Mono Nerd Font via winget (DEVCOM.JetBrainsMonoNerdFont).
superfile requires a Nerd Font for proper icon display.
Supported platforms:
- Windows x64 (AMD64 / Intel 64bit)
@@ -72,7 +73,7 @@ if ($spfCmd) {
$spfBin = $spfCmd.Source
}
# 2) Refresh PATH from registry (winget may have added paths)
# 2) Refresh PATH from registry
if (-not $spfBin) {
$env:Path = [System.Environment]::GetEnvironmentVariable('Path', 'User') + ';' + [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
$spfCmd = Get-Command spf -ErrorAction SilentlyContinue
@@ -126,7 +127,20 @@ if ($spfBin) {
}
# ────────────────────────────────────────────
# Step 2: Post-install notes
# Step 2: Install JetBrains Mono Nerd Font
# ────────────────────────────────────────────
Info "Installing JetBrains Mono Nerd Font (required for icon display)..."
if (Get-Command winget -ErrorAction SilentlyContinue) {
winget install --id DEVCOM.JetBrainsMonoNerdFont --accept-package-agreements --accept-source-agreements 2>&1 | Out-Null
Success "JetBrains Mono Nerd Font installed via winget"
} else {
Warn "winget not available. Install JetBrains Mono Nerd Font manually from:"
Warn " https://github.com/ryanoasis/nerd-fonts/releases"
}
# ────────────────────────────────────────────
# Step 3: Post-install notes
# ────────────────────────────────────────────
Info ""
Info "=================================================="
@@ -140,12 +154,13 @@ Info ""
Info "IMPORTANT: Close this terminal and open a new one to use superfile (spf)."
Info "PATH changes require a new terminal session to take effect."
Info ""
Info "Note: The command name is 'spf', not 'superfile'."
Info "Set your terminal font to 'JetBrainsMono Nerd Font Mono' for proper icon display."
Info ""
Info "Getting started:"
Info " spf - Start superfile file manager"
Info " spf --help - Show help"
Info ""
Info "Note: The command name is 'spf', not 'superfile'."
Info ""
Info "Key bindings (vim-style):"
Info " h/j/k/l - Left/Down/Up/Right"
Info " Enter - Open directory / file"