/
.exports
104 lines (68 loc) · 2.27 KB
/
.exports
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env bash
# `.exports` is used to provide custom variables.
# === Compiler flags ===
# This is required because `openssl` is keg-only in `brew`,
# see: `brew info openssl` for more information.
export LDFLAGS="-L$(brew --prefix)/opt/openssl/lib"
export CPPFLAGS="-I$(brew --prefix)/opt/openssl/include"
export CFLAGS="-I$(xcrun --show-sdk-path)/usr/include"
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig"
# === Path modifications ===
# These lines should be the first ones!
# GPG agent:
PATH="/usr/local/opt/gpg-agent/bin:$PATH"
# Adds `pipx` binary files:
PATH="$HOME/.local/bin:$PATH"
# Adds `poetry` binary, should be added to the end:
PATH="$HOME/.poetry/bin:$PATH"
# npm:
PATH="/usr/local/share/npm/bin:$PATH"
# === General ===
# Editor:
export EDITOR="$(which nano)"
# GPG:
export GPG_TTY="$(tty)"
eval "$(gpg-agent --daemon --allow-preset-passphrase > /dev/null 2>&1)"
# Homebrew:
export HOMEBREW_NO_ANALYTICS=1 # disables statistics that brew collects
# Pagers:
# This affects every invocation of `less`.
#
# -i case-insensitive search unless search string contains uppercase letters
# -R color
# -F exit if there is less than one page of content
# -X keep content on screen after exit
# -M show more info at the bottom prompt line
# -x4 tabs are 4 instead of 8
export LESS='-iRFXMx4'
export PAGER='less'
export MANPAGER='less'
# === Version managers ===
# nvm:
export NVM_DIR="$HOME/.nvm"
if [ -s "$(brew --prefix)/opt/nvm/nvm.sh" ]; then
source "$(brew --prefix)/opt/nvm/nvm.sh"
fi
# pyenv:
eval "$(pyenv init --path)"
# rbenv:
eval "$(rbenv init -)"
# rustup:
source "$HOME/.cargo/env"
# === Poetry ===
# https://python-poetry.org/docs/configuration/
export POETRY_VIRTUALENVS_IN_PROJECT=true
# === Histories ===
# Enable persistent REPL history for `node`.
export NODE_REPL_HISTORY="$HOME/.node_history"
# Use sloppy mode by default, matching web browsers.
export NODE_REPL_MODE='sloppy'
# Erlang and Elixir shell history:
export ERL_AFLAGS='-kernel shell_history enabled'
# === Code highlight ===
# https://github.com/zsh-users/zsh-syntax-highlighting
# We won't highlight code longer than 200 chars, because it is slow:
export ZSH_HIGHLIGHT_MAXLENGTH=200
# === PATH ===
# This should be the last line:
export PATH