From 4fb2e03e4e56ab5df7e62975abbec4bdb54ff459 Mon Sep 17 00:00:00 2001 From: DarkKronicle <38167691+DarkKronicle@users.noreply.github.com> Date: Wed, 17 Jan 2024 04:35:12 -0700 Subject: [PATCH] fix: use nushell arguments spreading (#29) --- docs/quick-start.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/quick-start.md b/docs/quick-start.md index b2ca4505..6d8b50f5 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -52,14 +52,14 @@ end ```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 } ```