-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
34 lines (25 loc) · 1.02 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export DOTFILES=$HOME/Projects/dotfiles
eval "$(/opt/homebrew/bin/brew shellenv)"
if type brew &>/dev/null; then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
autoload -Uz bashcompinit
bashcompinit
fi
source $DOTFILES/completion/fabric.bash
# Case insensitive completion
setopt nocaseglob
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
# If any text is between the beginning of the line and the cursor,
# it will be used as a prefix filter for command history when you
# hit the up or down arrow key.
bindkey "\e[A" history-search-backward
bindkey "\e[B" history-search-forward
# Python
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
eval "$(direnv hook zsh)"