very cool stuff

This commit is contained in:
2025-03-18 19:13:35 +01:00
parent e6c55a577e
commit da1de13cab
17 changed files with 56 additions and 40 deletions

View File

@@ -0,0 +1,8 @@
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end