-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zprofile
59 lines (48 loc) · 1.83 KB
/
.zprofile
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
# ENV vars
if [ "$(arch)" = "arm64" ]; then
export HOMEBREW_PREFIX=/opt/homebrew
else
export HOMEBREW_PREFIX=/usr/local
fi
export EDITOR="subl -w"
export EC2_HOME="$HOMEBREW_PREFIX/Library/LinkedKegs/ec2-api-tools/jars"
# Twilight theme
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LSCOLORS="exfxcxdxbxegedabagacad"
export GOPATH=~/.go
export ANDROID_HOME=$HOME/Library/Android/sdk
export RUBY_CONFIGURE_OPTS=--disable-install-doc
export THOR_MERGE=ksdiff
export CLOUDSDK_PYTHON_SITEPACKAGES=1
export npm_config_yes=true
PATH=$HOME/.yarn/bin:$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin:$HOMEBREW_PREFIX/mysql/bin:$HOMEBREW_PREFIX/share/npm/bin:$HOMEBREW_PREFIX/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/.bin:$GOPATH/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
DYLD_LIBRARY_PATH=$HOMEBREW_PREFIX/mysql/lib:$DYLD_LIBRARY_PATH
if [[ -f $HOMEBREW_PREFIX/opt/asdf/libexec/asdf.sh ]]; then
source $HOMEBREW_PREFIX/opt/asdf/libexec/asdf.sh
fi
source $HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh
# Latest ruby version directory is always unversioned
if [ -d "$HOMEBREW_PREFIX/Cellar/ruby/" ];then
RUBIES+=($HOMEBREW_PREFIX/Cellar/ruby/*)
fi
# For older ruby versions that are put in directories like "[email protected]"
unsetopt nomatch # Disable warning if there are no matches for the glob below
for dir in $HOMEBREW_PREFIX/Cellar/ruby@[.0-9]*
do
if [ -d $dir ];then
RUBIES+=($dir/*)
fi
done
setopt nomatch
if [ -d "$HOMEBREW_PREFIX/Cellar/rubinius/" ];then
RUBIES+=($HOMEBREW_PREFIX/Cellar/rubinius/*)
fi
if [ -d "$HOMEBREW_PREFIX/Cellar/jruby/" ];then
RUBIES+=($HOMEBREW_PREFIX/Cellar/jruby/*)
fi
if [ -d "$HOME/.asdf/installs/ruby/" ];then
RUBIES+=($HOME/.asdf/installs/ruby/*)
fi
chruby 3.3
source $HOMEBREW_PREFIX/opt/chruby/share/chruby/auto.sh