diff --git a/home/user/.config/zsh/aliases b/home/user/.config/zsh/aliases index f720084..58e7c63 100644 --- a/home/user/.config/zsh/aliases +++ b/home/user/.config/zsh/aliases @@ -19,8 +19,8 @@ if command -v eza &>/dev/null; then alias ll='eza --group --long' alias la='eza --all' alias lla='eza --long --all --group' - alias l.='_d() ( cd "${1:-.}" && eza --list-dirs .* ; ); _d' - alias ll.='_d() ( cd "${1:-.}" && eza --long --group --all --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 tree='eza --tree' fi diff --git a/home/user/.config/zsh/functions b/home/user/.config/zsh/functions index ee35e7a..88b735a 100644 --- a/home/user/.config/zsh/functions +++ b/home/user/.config/zsh/functions @@ -9,7 +9,7 @@ mcd() { fi readonly dir - mkdir -p "${dir}" && cd "${dir}" + mkdir -p "${dir}" && \cd "${dir}" } ve() { @@ -67,13 +67,13 @@ cargo-init() { return 1 fi - cargo init "${1}" && cd "${1}" && \ + cargo init "${1}" && \cd "${1}" && \ return "${?}" } yacd() { local tmp="$(mktemp -t "yazi-cwd.XXXXX")" yazi "${@}" --cwd-file="${tmp}" - cd "$(cat "${tmp}")" + \cd "$(cat "${tmp}")" rm -f "${tmp}" >/dev/null } diff --git a/home/user/.config/zsh/other b/home/user/.config/zsh/other index 9348d43..31c9640 100644 --- a/home/user/.config/zsh/other +++ b/home/user/.config/zsh/other @@ -16,4 +16,9 @@ if [ -x /usr/bin/dircolors ]; then # Take advantage of $LS_COLORS for completion as well zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' -fi \ No newline at end of file +fi + + +if command -v zoxide 1>/dev/null 2>&1; then + eval "$(zoxide init zsh)" +fi