update yazi config to fix breaking changes

This commit is contained in:
Alexander Navarro 2024-08-05 09:29:41 -04:00
parent 519e658693
commit 945b87e85d
7 changed files with 266 additions and 280 deletions

View file

@ -52,11 +52,11 @@ fzf-jq() {
echo '' | fzf --print-query --preview="jq -r {q} <$@"
}
function ya() {
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
\cd -- "$cwd"
fi
rm -f -- "$tmp"
}