Skip to content

Commit

Permalink
docs(quick-start): fix aliased cat error on shell wrapper (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: 三咲雅 · Misaki Masa <[email protected]>
  • Loading branch information
kieran-osgood and sxyazi authored Oct 12, 2024
1 parent a7e4fde commit f6922c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f6922c4

Please sign in to comment.