From f6922c48df841dce56e376c12525cc96e0f24e2c Mon Sep 17 00:00:00 2001 From: Kieran Osgood Date: Sat, 12 Oct 2024 12:36:16 +0100 Subject: [PATCH] docs(quick-start): fix aliased cat error on shell wrapper (#151) 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 d271800c..6c637164 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -27,7 +27,7 @@ We suggest using this `y` shell wrapper that provides the ability to change the function y() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" yazi "$@" --cwd-file="$tmp" - if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then + if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then builtin cd -- "$cwd" fi rm -f -- "$tmp"