-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshenv
68 lines (56 loc) · 1.9 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
export MAILDIR=$HOME/.maildir
export NO_COLOR=1
export VISUAL=nvim
export EDITOR="$VISUAL"
export VIMCONFIG="$HOME/.vim"
export VIMDATA="$HOME/.vim"
# -R = READONLY mode; -i NONE = no SHADA
export PAGER=less
export LESS='-GRJx4P?f[%f]:[STDIN].?pB - [%pB\%]:\.\.\..'
export MANPAGER='nvim +Man! -i NONE'
# Set PARINIT for par. How did I pick these values?
export PARINIT='rTbgqR B=.,?_A_a Q=_s>|'
# vim may live in $HOME/local/vim
[[ -d "${HOME}/local/vim" ]] && PATH="${HOME}/local/vim/bin:${PATH}"
# passage lives in $HOME/local/passage
if [[ -d ${HOME}/local/passage ]]; then
PATH="${PATH}:${HOME}/local/passage/bin"
fi
# neovim probably lives in $HOME/local/neovim
[[ -d ${HOME}/local/neovim ]] && PATH="${PATH}:${HOME}/local/neovim/bin"
# go probably lives in $HOME/local/go
if [[ -d $HOME/local/go/bin ]]; then
PATH="${HOME}/local/go/bin:${PATH}"
fi
# go environment probably lives in $HOME/go
if [[ -d ${HOME}/go ]]; then
export GOPATH="${HOME}/go"
export GOBIN="${HOME}/go/bin"
PATH="${PATH}:${GOBIN}"
fi
# postgres
if [[ -d /Applications/Postgres.app ]]; then
PATH="${PATH}:/Applications/Postgres.app/Contents/Versions/latest/bin"
fi
# lua-language-server
if [[ -d $HOME/local/lua-language-server/bin ]]; then
PATH="${HOME}/local/lua-language-server/bin:${PATH}"
fi
# rust
[[ -r $HOME/.cargo/env ]] && source "$HOME/.cargo/env"
# zig may live in $HOME/local/zig
if [[ -r $HOME/local/zig/zig ]]; then
PATH="${HOME}/local/zig:${PATH}"
fi
# lua probably lives in $HOME/local/lua
if [[ -d $HOME/local/lua ]]; then
PATH="${HOME}/local/lua/bin:${PATH}"
fi
# pipx, rust-analyzer and (possibly) others live in ~/.local/bin
# I need this to end up *before* the cargo/rustup PATH.
# See the following discussion on GitHub for why: https://bit.ly/3MESyZ3.
# TODO: investigate what ~/.cargo/env does to PATH.
if [[ -d ${HOME}/.local/bin ]]; then
PATH="${HOME}/.local/bin:${PATH}"
fi
export PATH