added existing

This commit is contained in:
2025-11-16 17:10:41 +01:00
parent dacd367de7
commit 4c69b186f0
16 changed files with 475 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# yazi file manager wrapper
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