-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
48 lines (38 loc) · 1.05 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
set -o emacs
# Fn+Delete on macOS
bindkey "\e[3~" delete-char
if type brew &>/dev/null; then
export PATH="$(brew --prefix)/opt/python/libexec/bin:$PATH"
# https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"
if type nvim &>/dev/null; then
alias vim='nvim'
fi
if [ -d "$HOME/.jenv" ]; then
export PATH="$HOME/.jenv/bin:$PATH"
fi
if type jenv &>/dev/null; then
eval "$(jenv init -)"
fi
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
fi
if type pyenv &>/dev/null; then
eval "$(pyenv init --path)"
fi
if type rbenv &>/dev/null; then
eval "$(rbenv init -)"
fi
if type starship &>/dev/null; then
eval "$(starship init zsh)"
fi
unset LSCOLORS
export CLICOLOR=1
export CLICOLOR_FORCE=1