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}"