From 103a34e25ee9a8385d5bd2083ab4c70701157914 Mon Sep 17 00:00:00 2001 From: Lukas Graz <79447750+LGraz@users.noreply.github.com> Date: Fri, 26 Jul 2024 02:24:54 +0200 Subject: [PATCH] docs: specify `cd`-command in bash-zsh shell wrapper (#108) --- 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 ec1d1215..95c01309 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -28,7 +28,7 @@ function yy() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" yazi "$@" --cwd-file="$tmp" if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then - cd -- "$cwd" + builtin cd -- "$cwd" fi rm -f -- "$tmp" }