-
Notifications
You must be signed in to change notification settings - Fork 2
/
zshenv
52 lines (40 loc) · 1.27 KB
/
zshenv
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
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='vim'
fi
# Export paths
export PATH="${HOME}/Applications:${PATH}"
export PATH="/usr/local/sbin:$PATH"
# Python
export PATH="$(python3 -m site --user-base)/bin:${PATH}"
# poetry
export PATH="$HOME/.local/bin:$PATH"
# Java
# Apache Spark requires it
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export JAVA_OPTS=--add-opens=java.base/java.nio=ALL-UNNAMED
# certificate so that databricks command works
if [ -f /etc/ssl/certs/ca-certificates.crt ]; then
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
fi
# Ruby
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
export PATH="`ruby -e 'print Gem.user_dir'`/bin:${PATH}"
# Nodejs
export NPM_PACKAGES="${HOME}/.npm"
export PATH="${NPM_PACKAGES}/bin:${PATH}"
# rust/cargo
# export PATH="${HOME}/.cargo/bin:${PATH}"
# export RUST_SRC_PATH="${HOME}/.multirust/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/src"
# ghc
export PATH="${HOME}/.cabal/bin:${PATH}"
# go
# export GOPATH="${HOME}/Repos/go"
# export GOROOT="/usr/local/opt/go/libexec"
# export PATH=$PATH:$GOPATH/bin
# export PATH=$PATH:$GOROOT/bin