Skip to content

Commit

Permalink
fix: make powershell y command work with non-english characters (#191)
Browse files Browse the repository at this point in the history
Co-authored-by: sxyazi <[email protected]>
  • Loading branch information
luiz00martins and sxyazi authored Jan 8, 2025
1 parent 6c943de commit 4dfaabd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4dfaabd

Please sign in to comment.