yazi: add config, and shell wrapper

This commit is contained in:
Oleksandr Smirnov 2025-10-24 23:20:41 +03:00
parent 1144351375
commit 34f696607a
No known key found for this signature in database
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,8 @@
function yaz
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