This commit is contained in:
Davide Frattarolo
2025-09-30 18:24:18 +02:00
parent cb0c0e6e6e
commit 9b167944ae
2 changed files with 41 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end