Update .config/fish/functions/y.fish

Update .config/yazi/keymap.toml
This commit is contained in:
2025-06-11 12:48:05 +02:00
parent 8d2ce79c67
commit 02396527ed
2 changed files with 10 additions and 363 deletions

View File

@@ -1,7 +1,7 @@
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" ]
if read -z cwd < "$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"