Skip to content

Commit

Permalink
docs: make nushell script cross platform (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibouras authored Nov 17, 2023
1 parent 6a81070 commit 962ad48
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 @@ -168,9 +168,9 @@ end
```shell
def-env ya [] {
let tmp = (mktemp -t "yazi-cwd.XXXXX")
let tmp = $"($env.TEMP)(char path_sep)yazi-cwd." + (random chars -l 5)
yazi --cwd-file $tmp
let cwd = (cat -- $tmp)
let cwd = (open $tmp)
if $cwd != "" and $cwd != $env.PWD {
cd $cwd
}
Expand Down

0 comments on commit 962ad48

Please sign in to comment.