-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.paths
More file actions
36 lines (32 loc) · 907 Bytes
/
.paths
File metadata and controls
36 lines (32 loc) · 907 Bytes
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
[ -n "${DEBUG}" ] && echo ">>> $(basename "$0")"
# Build PATH from candidates (only if directory exists and is executable)
PATH=""
for p in \
"${HOME}/bin" \
"${HOME}/.local/bin" \
"/opt/homebrew/bin" \
"/opt/homebrew/sbin" \
"/opt/local/bin" \
"/opt/local/sbin" \
"/usr/local/bin" \
"/usr/local/sbin" \
"/Applications/Obsidian.app/Contents/MacOS" \
"/usr/bin" \
"/usr/sbin" \
"/usr/libexec" \
"/bin" \
"/sbin"
do
[ -d "$p" ] && PATH="${PATH:+$PATH:}$p"
done
export PATH
# Google Cloud SDK
if [ -f '/opt/homebrew/share/google-cloud-sdk/path.zsh.inc' ]; then
. '/opt/homebrew/share/google-cloud-sdk/path.zsh.inc'
fi
# Homebrew zsh completions (only in zsh)
if [ -n "$ZSH_VERSION" ] && command -v brew >/dev/null 2>&1; then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
fi
[ -n "${DEBUG}" ] && echo "<<< $(basename "$0")"
: