-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_path
35 lines (24 loc) · 946 Bytes
/
.bash_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
34
35
#!/usr/bin/env bash
# add Docker Desktop for Mac CLI early in PATH
[ -e "/usr/local/bin" ] \
&& export PATH="/usr/local/bin:$PATH"
# add rbenv shims early in PATH
[ -e "${HOME}/.rbenv/shims" ] \
&& export PATH="${HOME}/.rbenv/shims:$PATH"
# add HOME bin for my scripts late in PATH
[ -e "$HOME/bin" ] \
&& export PATH="$PATH:$HOME/bin"
# add Homebrew for M1 late in path
# Set PATH, MANPATH, etc., for Homebrew.
[ -e "/opt/homebrew/bin/brew" ] \
&& eval "$(/opt/homebrew/bin/brew shellenv)"
[ -e "/usr/local/bin/brew" ] \
&& eval "$(/usr/local/bin/brew shellenv)"
# add go bin late in PATH
export GOPATH="$HOME/go"
[ -e "$GOPATH/bin" ] \
&& export PATH="$PATH:$GOPATH/bin"
# "$GOROOT/bin:$GOPATH/bin:/usr/local/go/bin"
# activate a python venv if it exists
[ -e $HOME/venv-python3/bin/activate ] \
&& source $HOME/venv-python3/bin/activate