Skip to content

Latest commit

 

History

History
149 lines (94 loc) · 2.26 KB

File metadata and controls

149 lines (94 loc) · 2.26 KB

Optional Components

PowerShell DevKit includes several optional components that enhance functionality but aren't required for core features.

Overview

Optional components can be skipped during installation:

.\Scripts\Setup.ps1 -SkipOptional

Components

gsudo

Purpose: Elevated permissions without leaving current terminal

Installation: Automatic (unless skipped)

Usage:

# Run command as administrator
gsudo Get-Service

# Open elevated PowerShell session
gsudo pwsh

Manual installation:

winget install gerardog.gsudo

PowerColorLS

Purpose: Colorized directory listings

Installation: Optional PowerShell module

Usage:

# Enhanced ls
PowerColorLS

Manual installation:

Install-Module -Name PowerColorLS -Scope CurrentUser

Scoop

Purpose: 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-Expression

resvg

Purpose: SVG thumbnail rendering in Yazi

Requires: Scoop

Installation:

scoop install resvg

Yazi Optional Dependencies

Media Support

FFmpeg - Video thumbnails

winget install Gyan.FFmpeg

ImageMagick - Image processing

winget install ImageMagick.ImageMagick

Poppler - PDF previews

winget install oschwartz10612.Poppler

Archive Support

7-Zip - Archive previews

winget install 7zip.7zip

Utilities

jq - JSON processing

winget install jqlang.jq

fd - Fast file search

winget install sharkdp.fd

ripgrep - Text search

winget install BurntSushi.ripgrep.MSVC

Bulk Installation

Install 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

See Also