PowerShell DevKit includes several optional components that enhance functionality but aren't required for core features.
Optional components can be skipped during installation:
.\Scripts\Setup.ps1 -SkipOptionalPurpose: Elevated permissions without leaving current terminal
Installation: Automatic (unless skipped)
Usage:
# Run command as administrator
gsudo Get-Service
# Open elevated PowerShell session
gsudo pwshManual installation:
winget install gerardog.gsudoPurpose: Colorized directory listings
Installation: Optional PowerShell module
Usage:
# Enhanced ls
PowerColorLSManual installation:
Install-Module -Name PowerColorLS -Scope CurrentUserPurpose: Command-line package manager
Why optional: Primarily needed for resvg (SVG support in Yazi)
Installation:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-ExpressionPurpose: SVG thumbnail rendering in Yazi
Requires: Scoop
Installation:
scoop install resvgFFmpeg - Video thumbnails
winget install Gyan.FFmpegImageMagick - Image processing
winget install ImageMagick.ImageMagickPoppler - PDF previews
winget install oschwartz10612.Poppler7-Zip - Archive previews
winget install 7zip.7zipjq - JSON processing
winget install jqlang.jqfd - Fast file search
winget install sharkdp.fdripgrep - Text search
winget install BurntSushi.ripgrep.MSVCInstall all Yazi optional dependencies:
# Function available after Setup.ps1
Install-YaziOptionals
# Just dependencies (no plugins)
Install-YaziOptionals -DependenciesOnly
# Just plugins (no dependencies)
Install-YaziOptionals -PluginsOnly