diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 4606d67..a91e02f 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -174,7 +174,7 @@ function git_main_branch() { } # Yazi shortcut that allows setting the current working directory on exit -function yz() { +function -() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd yazi "$@" --cwd-file="$tmp" IFS= read -r -d '' cwd < "$tmp"