Skip to content

Commit

Permalink
fix: use nushell arguments spreading (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkKronicle authored Jan 17, 2024
1 parent f96f4ac commit 4fb2e03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ end
<TabItem value="nushell" label="Nushell">
```sh
def --env ya [args?] {
def --env ya [...args] {
let tmp = (mktemp -t "yazi-cwd.XXXXX")
yazi $args --cwd-file $tmp
yazi ...$args --cwd-file $tmp
let cwd = (open $tmp)
if $cwd != "" and $cwd != $env.PWD {
cd $cwd
}
rm -f $tmp
rm -fp $tmp
}
```
Expand Down

0 comments on commit 4fb2e03

Please sign in to comment.