-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
73 lines (64 loc) · 1.93 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
64
65
66
67
68
69
70
71
72
73
# ~/.zshenv
#
# .zshenv -> .zprofile -> .zshrc
#
# .zhenv
# Read every time. Be careful not to modify default behaviour of
# standard commands here such as setting aliases.
#
# .zprofile
# Read at login.
#
# .zshrc
# Read when interactive.
# Env vars
# --------------------------------------------------------------------
export ALTERNATE_EDITOR='mg'
export EDITOR='emacsclient -t'
export GOPATH="${HOME}/code/go"
export GPG_TTY="$(tty)"
export KEYID='0x667A3481E4BB34F3'
export LANG='en_GB.UTF-8'
export LC_ALL='en_GB.UTF-8'
export PAGER='less -i'
export TZ='Europe/London'
export VISUAL='emacsclient -c'
# For compiling stuff on Apple Silicon Macs.
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
# ruby-build: For compiling Ruby against Homebrew's OpenSSL
#
# ==> ruby-build
# ruby-build installs a non-Homebrew OpenSSL for each Ruby version installed and these are never upgraded.
#
# To link Rubies to Homebrew's OpenSSL 1.1 (which is upgraded) add the following
# to your shell profile e.g. ~/.profile or ~/.zshrc:
# export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])"
export RUBY_CONFIGURE_OPTS='--with-openssl-dir=/opt/homebrew/opt/[email protected]'
# PATH
# -------------------------------------------------------------------
# (N-/): do not register if the directory does not exists
# (Nn[-1]-/)
#
# N : NULL_GLOB option (ignore path if the path does not match the glob)
# n : Sort the output
# [-1]: Select the last item in the array
# - : follow the symbol links
# / : ignore files
# t : tail of the path
path=($HOME/.local/bin
$GOPATH/bin
$HOME/.cargo/bin
$HOME/.npm-global/bin
$HOME/.krew/bin
$HOME/bin
/usr/local/MacGPG2/bin(N-/)
/opt/homebrew/bin(N-/)
/Applications/Postgres.app/Contents/Versions/latest/bin(N-/)
/usr/local/{bin,sbin}
/usr/{bin,sbin}
/{bin,sbin}
)
# Remove any duplicates in $PATH and export.
typeset -gU path
export PATH