diff --git a/docs/quick-start.md b/docs/quick-start.md index cfc97fcb..9bc2513b 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -76,6 +76,27 @@ function yy { } Remove-Item -Path $tmp } +``` + + + + +Create the file `yy.cmd` and place it in your `%PATH%`. + +```cmd +@echo off + +set tmpfile=%TEMP%\yazi-cwd.%random% + +yazi %* --cwd-file="%tmpfile%" + +set /p cwd=<%tmpfile% + +if not "%cwd%"=="" ( + cd /d "%cwd%" +) + +del "%tmpfile%" ```