From 078ab9e2fdf9976888e2b35a45f13302e71167a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 19 Oct 2024 07:40:56 +0300 Subject: [PATCH] docs: do not leak `cwd` variable (#69) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 三咲雅 · Misaki Masa --- docs/quick-start.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quick-start.md b/docs/quick-start.md index 6c637164..835e4a97 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -25,7 +25,7 @@ We suggest using this `y` shell wrapper that provides the ability to change the ```bash function y() { - local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd yazi "$@" --cwd-file="$tmp" if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then builtin cd -- "$cwd"