zsh: direnv, cd tricks

This commit is contained in:
Jason Swank 2023-11-16 20:33:43 -05:00
parent bb9932b736
commit 375fd97462

View File

@ -4,6 +4,10 @@ alias grep='grep --color'
alias vim='nvim' alias vim='nvim'
alias vi='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 bindkey -v
if [ "${TERM}" = "xterm" ]; then if [ "${TERM}" = "xterm" ]; then
@ -25,6 +29,9 @@ if [ -n "$SSH_AUTH_SOCK" ]; then
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
fi fi
# direnv setup
whence -p direnv &>/dev/null && eval "$(direnv hook zsh)"
# Highlight the current autocomplete option # Highlight the current autocomplete option
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"