Installation
Linux
Snap
Using snap
sudo snap install yazi --classic
sudo snap refresh yazi --classicWindows
Install winget
winget install --id sxyazi.yazi
winget upgrade --id sxyazi.yazi# Add wrapper
# Create directory if not exist
New-Item -ItemType Directory -Path $PROFILE/../ -Force
# Append wrapper into profile
@'
function y {
$tmp = (New-TemporaryFile).FullName
yazi $args --cwd-file="$tmp"
$cwd = Get-Content -Path $tmp -Encoding UTF8
if (-not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) {
Set-Location -LiteralPath (Resolve-Path -LiteralPath $cwd).Path
}
Remove-Item -Path $tmp
}
'@ >> "$PROFILE"# Customize appearance
# Create directory if not exist
New-Item `
-ItemType Directory `
-Path "$env:APPDATA\yazi\config\" `
-Force
# Download theme
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/catppuccin/yazi/refs/heads/main/themes/macchiato/catppuccin-macchiato-lavender.toml" `
-OutFile "$env:APPDATA\yazi\config\theme.toml"# Customize preview pane syntax highlighting
# Create directory if not exist
New-Item `
-ItemType Directory `
-Path "$HOME\yazi\config" `
-Force
# Download theme
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/catppuccin/bat/refs/heads/main/themes/Catppuccin%20Macchiato.tmTheme" `
-OutFile "$HOME\yazi\config\Catppuccin-macchiato.tmTheme"