-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_path
33 lines (28 loc) · 908 Bytes
/
dot_path
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
#!/bin/bash
# Add go binaries to PATH
if [[ ! "$PATH" == *"/usr/local/go/bin"* ]]; then
export PATH="${PATH}:/usr/local/go/bin"
fi
if [[ ! "$PATH" == *"${HOME}/go/bin"* ]]; then
export PATH="${PATH}:${HOME}/go/bin"
fi
# Add PHP executables to PATH
if [[ ! "$PATH" == *"${HOME}/.config/composer/vendor/bin"* ]]; then
export PATH="${PATH}:${HOME}/.config/composer/vendor/bin"
fi
if [[ ! "$PATH" == *"${HOME}/.composer/vendor/bin"* ]]; then
export PATH="${PATH}:${HOME}/.composer/vendor/bin"
fi
# Add yarn executables to PATH
if [[ ! "$PATH" == *"${HOME}/.yarn/bin"* ]]; then
export PATH="${PATH}:${HOME}/.yarn/bin"
fi
# Add GEM executables to PATH
GEMPATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin"
if [[ ! "$PATH" == *"$GEMPATH"* ]]; then
export PATH="${PATH}:$GEMPATH"
fi
# Add any custom executables to PATH
if [[ ! "$PATH" == *"${HOME}/bin"* ]]; then
export PATH="${PATH}:${HOME}/bin"
fi