-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
47 lines (34 loc) · 1.41 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
ZSH=$HOME/.oh-my-zsh
plugins=(git history-substring-search rails docker bundler)
ZSH_THEME=juanghurtado
COMPLETION_WAITING_DOTS="true"
export EDITOR="/usr/local/bin/mate -w"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/[email protected]"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export NODE_ENV=development
export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="$HOME/dotfiles/bin:$PATH"
export PATH="/usr/local/bin/rubocop-daemon-wrapper:$PATH"
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
source $ZSH/oh-my-zsh.sh
source $HOME/.aliases
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use >/dev/null 2>&1
elif [[ $(nvm version) != $(nvm version default) ]]; then
nvm use default >/dev/null 2>&1
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrc
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT="${ret_status}"
eval "$(rbenv init -)"