add zoxide

This commit is contained in:
thek4n 2026-07-20 12:26:38 +03:00
parent e74edc7157
commit 2e32505eda
3 changed files with 11 additions and 6 deletions

View File

@ -19,8 +19,8 @@ if command -v eza &>/dev/null; then
alias ll='eza --group --long' alias ll='eza --group --long'
alias la='eza --all' alias la='eza --all'
alias lla='eza --long --all --group' alias lla='eza --long --all --group'
alias l.='_d() ( cd "${1:-.}" && eza --list-dirs .* ; ); _d' alias l.='_d() ( \cd "${1:-.}" && eza --list-dirs .* ; ); _d'
alias ll.='_d() ( cd "${1:-.}" && eza --long --group --all --list-dirs .* ; ); _d' alias ll.='_d() ( \cd "${1:-.}" && eza --long --group --all --list-dirs .* ; ); _d'
alias tree='eza --tree' alias tree='eza --tree'
fi fi

View File

@ -9,7 +9,7 @@ mcd() {
fi fi
readonly dir readonly dir
mkdir -p "${dir}" && cd "${dir}" mkdir -p "${dir}" && \cd "${dir}"
} }
ve() { ve() {
@ -67,13 +67,13 @@ cargo-init() {
return 1 return 1
fi fi
cargo init "${1}" && cd "${1}" && \ cargo init "${1}" && \cd "${1}" && \
return "${?}" return "${?}"
} }
yacd() { yacd() {
local tmp="$(mktemp -t "yazi-cwd.XXXXX")" local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
yazi "${@}" --cwd-file="${tmp}" yazi "${@}" --cwd-file="${tmp}"
cd "$(cat "${tmp}")" \cd "$(cat "${tmp}")"
rm -f "${tmp}" >/dev/null rm -f "${tmp}" >/dev/null
} }

View File

@ -17,3 +17,8 @@ if [ -x /usr/bin/dircolors ]; then
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
fi fi
if command -v zoxide 1>/dev/null 2>&1; then
eval "$(zoxide init zsh)"
fi