-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
62 lines (52 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
setopt no_global_rcs
export ZDOTDIR=${HOME}/.config/zsh
# See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
export XDG_DATA_HOME=${HOME}/.local/share
export XDG_CONFIG_HOME=${HOME}/.config
export XDG_CACHE_HOME=${HOME}/.cache
# For coloring macOS ls
export CLICOLOR=1
#==============================================================================
# PATH
#==============================================================================
path=(
${HOME}/.bin
${HOME}/.local/bin
/usr/local/sbin
# Coreutils for mac
# equivalent to export PATH="$(brew --prefix coreutils)/libexec/gnubin:${PATH}"
/usr/local/opt/coreutils/libexec/gnubin(N-/)
# Go
/usr/local/go/bin(N-/)
# Rust
${HOME}/.cargo/bin(N-/)
$path
)
# Configure homebrew
if [[ -f /opt/homebrew/bin/brew ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
#==============================================================================
# MANPATH
#==============================================================================
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:${MANPATH}"
#==============================================================================
# Go
#==============================================================================
if type go > /dev/null 2>&1; then
export GOPATH=${HOME}/Code/go
PATH=${PATH}:$(go env GOPATH)/bin
fi
#==============================================================================
# Rust
#==============================================================================
if [ -e "$HOME/.cargo" ]; then
. "$HOME/.cargo/env"
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
fi
#==============================================================================
# asdf
#==============================================================================
. "$XDG_DATA_HOME/asdf/asdf.sh"
fpath=(${XDG_DATA_HOME}/asdf/completions $fpath)
export FZF_DEFAULT_OPTS="--layout=reverse --height=50%"