change yazi aliases
This commit is contained in:
parent
ce52f21a7a
commit
e1d02b4bf7
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user