Skip to content

Commit

Permalink
docs: add yy command support for cmd.exe (Command Prompt) (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaRevenco authored Sep 4, 2024
1 parent 149bab6 commit 9595954
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,27 @@ function yy {
}
Remove-Item -Path $tmp
}
```
</TabItem>
<TabItem value="command-prompt" label="Command Prompt">
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%"
```
</TabItem>
Expand Down

0 comments on commit 9595954

Please sign in to comment.