forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpath.zsh
26 lines (20 loc) · 748 Bytes
/
path.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
# Add directories to the PATH and prevent to add the same directory multiple times upon shell reload.
add_to_path() {
if [[ -d "$1" ]] && [[ ":$PATH:" != *":$1:"* ]]; then
export PATH="$1:$PATH"
fi
}
# Load Herd injected PHP binaries
add_to_path "/Users/chris/Library/Application Support/Herd/bin"
# Load dotfiles binaries
add_to_path "$DOTFILES/bin"
# Load global Composer tools
add_to_path "$HOME/.composer/vendor/bin"
# Load global Node installed binaries
add_to_path "$HOME/.node/bin"
# Use project specific binaries before global ones
add_to_path "vendor/bin"
add_to_path "node_modules/.bin"
# Add Herd services
add_to_path "/Users/Shared/Herd/services/mysql/8.0.36/bin"
add_to_path "/Users/Shared/Herd/services/redis/7.0.0/bin"