-
Notifications
You must be signed in to change notification settings - Fork 3
/
.path
45 lines (34 loc) · 1.63 KB
/
.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
36
37
38
39
40
41
42
43
44
45
# ------------------------------------------------------------------------ $PATH
# ZSH seems to load `/etc/profile` which runs eval `/usr/libexec/path_helper -s`
# which messes with $PATH.
# The global /etc/profile gets sourced after `.zshenv` and before `.zprofile`.
# This is why we set up $PATH in here, instead of `.zshenv` where it belongs.
# User ${HOME} bin
export PATH="${HOME}/bin:${HOME}/.bin"
# Golang $GOPATH bin
export PATH="${PATH}:${GOPATH}/bin"
# homebrew
# TODO: `/usr/local/bin` might already be part of the original $PATH. If so, this handling can be removed.
if [[ "$(/usr/bin/arch)" == "i386" ]]; then
export PATH="${PATH}:${HOMEBREW_PREFIX_X86}/bin:${HOMEBREW_PREFIX_X86}/sbin:${HOMEBREW_PREFIX_ARM64}/bin:${HOMEBREW_PREFIX_ARM64}/sbin"
else
export PATH="${PATH}:${HOMEBREW_PREFIX_ARM64}/bin:${HOMEBREW_PREFIX_ARM64}/sbin:${HOMEBREW_PREFIX_X86}/bin:${HOMEBREW_PREFIX_X86}/sbin"
fi
# GNU Tools
export PATH="${PATH}:${HOMEBREW_PREFIX_ARM64}/opt/make/libexec/gnubin"
export PATH="${PATH}:${HOMEBREW_PREFIX_ARM64}/opt/curl/bin"
export PATH="${PATH}:${HOMEBREW_PREFIX_ARM64}/opt/gnu-sed/libexec/gnubin"
# Google Cloud SDK
export PATH="${PATH}:${HOMEBREW_PREFIX_ARM64}/share/google-cloud-sdk/bin"
# asdf version manager
export PATH="${PATH}:${HOMEBREW_PREFIX_ARM64}/opt/asdf/libexec/bin"
# Volta
export PATH="${PATH}:${HOME}/.volta/bin"
# krew - kubectl plugin manager
export PATH="${PATH}:${KREW_ROOT}/bin"
# Rancher Desktop
export PATH="${PATH}:/.rd/bin"
# Original macos path
export PATH="${PATH}:/usr/bin:/usr/sbin:/bin:/sbin"
export PATH="${PATH}:/usr/local/MacGPG2/bin"
export PATH="${PATH}:/Applications/Wireshark.app/Contents/MacOS"