-
Notifications
You must be signed in to change notification settings - Fork 2
/
path_config.zsh
75 lines (54 loc) · 1.32 KB
/
path_config.zsh
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
# Utility for concatenating a directory to the PATH:
pathadd() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
# System default:
PATH="$HOME/bin:/usr/bin:/bin"
pathadd "/usr/sbin"
# Personalized scripts:
pathadd "$HOME/.bin"
# ollama, orb, docker...
pathadd "/usr/local/bin"
# fig, lvim, scarb...
pathadd "$HOME/.local/bin"
# homebrew:
export BREW_ROOT="/opt/homebrew"
pathadd "$BREW_ROOT/bin"
pathadd "$BREW_ROOT/sbin"
# rbenv:
export RBENV_ROOT="$BREW_ROOT/opt/rbenv"
pathadd "$RBENV_ROOT/bin"
# postgres:
pathadd "$BREW_ROOT/opt/postgresql@15/bin"
# rust:
pathadd "$HOME/.cargo/bin"
# Solana CLI:
pathadd "$HOME/.local/share/solana/install/active_release/bin"
# Anchor (Solana)
pathadd "$HOME/.avm/bin"
# OpenSSL:
pathadd "$BREW_ROOT/opt/openssl@1.1/bin"
# Elasticsearch:
pathadd "/usr/local/opt/elasticsearch@5.6/bin"
# Volta:
export VOLTA_HOME="$HOME/.volta"
pathadd "$VOLTA_HOME/bin"
# Starklings
pathadd "$HOME/.starklings/dist/starklings"
# Foundry
pathadd "$HOME/.foundry/bin"
# Noir
pathadd "$HOME/.nargo/bin"
# Fuel
pathadd "$HOME/.fuelup/bin"
# for gui elements:
pathadd "$HOME/usr/local/opt/tcl-tk/bin"
# use homebrew version of java:
pathadd "$BREW_ROOT/opt/openjdk/bin"
# bun
export BUN_INSTALL="$HOME/.bun"
pathadd "$BUN_INSTALL/bin"
# FINAL EXPORT:
export PATH