Change to - for yazi

This commit is contained in:
2025-11-12 21:34:45 +00:00
parent 25aac72ef4
commit 5f8bf2687e

View File

@@ -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"