fish: update configs and functions

This commit is contained in:
Hydroxycarbamide 2024-09-24 10:35:49 +02:00
parent 3b5aebcd93
commit 8c262bb069
5 changed files with 47 additions and 21 deletions

View file

@ -0,0 +1,8 @@
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" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end