forked from vishnuatrai/dot_files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh.local.old
71 lines (56 loc) · 2.17 KB
/
zsh.local.old
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
setopt correct
#export REMOTE_GEM_CACHE_PATH=$HOME/.remote-gem-cache
#export ZSH_HISTORY_PATH=~/src/dot_files/zsh_history
export HISTFILE=~/src/dot_files/zsh_history
#export HOMEBREW_SEARCH_CACHE_PATH=$HOME/.homebrew-search-cache
export PATH=/opt/mapr/bin:/opt/mapr/hadoop/hadoop-2.7.0/bin:/opt/mapr/hadoop/hadoop-2.7.0/bin:${PATH}
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export MAPR_HOME="/opt/mapr"
export PATH="$MAPR_HOME:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export JBOSS_HOME="/usr/local/src/wildfly-11.0.0.Final"
export PATH=$PATH:$JBOSS_HOME/bin
export PATH=$PATH:/usr/local/opt/rabbitmq/sbin
export GROOVY_HOME=/usr/local/opt/groovy/libexec
export SPRING_PROFILES_ACTIVE=local
export GROOVY_HOME="/Users/vsharm24/bin/groovy/2.4.0"
export PATH="$GROOVY_HOME/bin:$PATH"
export PATH="/Users/vsharm24/bin/apache-maven-3.2.3/bin:$PATH"
export GOPROXY=direct
export GOPRIVATE=*.optum.com
export GOPATH=$HOME/go
#export GOROOT=/usr/local/bin/go
export PATH=$PATH:$GOPATH/bin
export PATH="/usr/local/opt/openjdk/bin:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7)
export JAVA_HOME=$JAVA_8_HOME
export PATH="/usr/local/opt/openjdk@11/bin:$PATH"
export PATH=/usr/local/bin:$PATH:$HOME/bin
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
export PATH="/usr/local/opt/node@12/bin:$PATH"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
enter_directory() {
if [[ $PWD == $PREV_PWD ]]; then
return
fi
PREV_PWD=$PWD
if [[ -f ".nvmrc" ]]; then
nvm use
NVM_DIRTY=true
elif [[ $NVM_DIRTY = true ]]; then
nvm use default
NVM_DIRTY=false
fi
}
autoload -U add-zsh-hook
add-zsh-hook chpwd enter_directory
enter_directory