change yazi aliases

This commit is contained in:
thek4n 2026-07-22 15:07:58 +03:00
parent ce52f21a7a
commit e1d02b4bf7
2 changed files with 2 additions and 6 deletions

View File

@ -75,10 +75,6 @@ alias beeptime='beep -D 400 -l 400 -r "$(date +%I)" -f 440 -n -D 1000 -l 0 -n -D
alias vi='nvim'
alias svi="sudo --preserve-env nvim"
# Yazi
alias ya='YAZI_ORIGINAL_CWD="${PWD}" \yazi'
alias yazi='ya'
# git
for al in s d di co col cob ds u ps pst pl pr hs last lastd df amend br fuck sw swl swc swb
do

View File

@ -71,9 +71,9 @@ cargo-init() {
return "${?}"
}
yacd() {
ya() {
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
yazi "${@}" --cwd-file="${tmp}"
YAZI_ORIGINAL_CWD="${PWD}" \yazi "${@}" --cwd-file="${tmp}"
\cd "$(cat "${tmp}")"
rm -f "${tmp}" >/dev/null
}