-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshenv
63 lines (49 loc) · 1.57 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
53
54
55
56
57
58
59
60
61
62
63
# echo "\e[1;36mPreparing: Setting global variables and configure executable visability..."
function append_to_path () {
export PATH="$PATH:$1"
}
# shell
export PS1="[%* - %D] %d %% "
export KEYTIMEOUT=1
# core
export EDITOR=nvim
export MYVIMRC="$HOME/.vimrc"
append_to_path "$HOME/bin"
append_to_path "/usr/local/bin"
# global
export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
append_to_path "/usr/local/opt/openssl/bin"
# npm
append_to_path "/usr/local/share/npm/bin"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
append_to_path "$PYENV_ROOT/bin"
# https://vi.stackexchange.com/questions/7644/use-vim-with-virtualenv/7654#7654
if [[ -n $VIRTUAL_ENV && -e "${VIRTUAL_ENV}/bin/activate" ]]; then
source "${VIRTUAL_ENV}/bin/activate"
fi
# rust
export RUST_SRC_PATH="/usr/local/src/rust/src"
append_to_path ".cargo/bin"
append_to_path "/usr/local/src/racer/target/release"
# javascript
append_to_path "`yarn global bin`"
# java
export JAVA_HOME="$(/usr/libexec/java_home)"
# swift
export SWIFTENV_ROOT="$HOME/.swiftenv"
append_to_path "$SWIFTENV_ROOT/bin"
# ruby
append_to_path "/.rvm/bin"
export NPM_TOKEN="e45fed38-831a-47ca-b334-5c8f6f6b371c"
# END #
# resources
# https://misc.flogisoft.com/bash/tip_colors_and_formatting
#
# https://github.com/python-pillow/Pillow/issues/4816
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
export PKG_CONFIG_PATH="/usr/local/opt/zlib/lib/pkgconfig"