Custom fish function and bash yazi with fisher

This commit is contained in:
2025-12-24 15:58:15 +01:00
parent 428b3e717b
commit e7229185f0
8 changed files with 306 additions and 20 deletions

View File

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