From 375fd97462331779a23132b583f1c77b8d2cc5f8 Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Thu, 16 Nov 2023 20:33:43 -0500 Subject: [PATCH] zsh: direnv, cd tricks --- zsh/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index 357bc65..40a80c5 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -4,6 +4,10 @@ alias grep='grep --color' alias vim='nvim' alias vi='nvim' +# cd tricks +alias -- -='cd -' +setopt auto_cd # there is no binary by that name in your $PATH, your shell will cd into it that directory + bindkey -v if [ "${TERM}" = "xterm" ]; then @@ -25,6 +29,9 @@ if [ -n "$SSH_AUTH_SOCK" ]; then export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock fi +# direnv setup +whence -p direnv &>/dev/null && eval "$(direnv hook zsh)" + # Highlight the current autocomplete option zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"