Change to - for yazi
This commit is contained in:
@@ -174,7 +174,7 @@ function git_main_branch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Yazi shortcut that allows setting the current working directory on exit
|
# Yazi shortcut that allows setting the current working directory on exit
|
||||||
function yz() {
|
function -() {
|
||||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||||
yazi "$@" --cwd-file="$tmp"
|
yazi "$@" --cwd-file="$tmp"
|
||||||
IFS= read -r -d '' cwd < "$tmp"
|
IFS= read -r -d '' cwd < "$tmp"
|
||||||
|
|||||||
Reference in New Issue
Block a user