diff --git a/docs/quick-start.md b/docs/quick-start.md index d122212c..98d48013 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -89,9 +89,9 @@ edit:add-var y~ {|@argv| function y { $tmp = [System.IO.Path]::GetTempFileName() yazi $args --cwd-file="$tmp" - $cwd = Get-Content -Path $tmp + $cwd = Get-Content -Path $tmp -Encoding UTF8 if (-not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) { - Set-Location -LiteralPath $cwd + Set-Location -LiteralPath [System.IO.Path]::GetFullPath($cwd) } Remove-Item -Path $tmp }