From 4dfaabd77b4a9674335b569eb3802487bc6ee2b7 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Oliveira Martins <43142209+luiz00martins@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:22:59 -0300 Subject: [PATCH] fix: make powershell y command work with non-english characters (#191) Co-authored-by: sxyazi --- docs/quick-start.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }