Basic configuration for Yazi file manager

This commit is contained in:
Fabio Scotto di Santolo
2024-07-23 09:47:17 +02:00
parent 3ea3fb3e24
commit ac9881b7f8
6 changed files with 872 additions and 0 deletions

View File

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