-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
50 lines (38 loc) · 1.33 KB
/
bash_profile
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
46
47
48
49
50
export LC_ALL=en_GB.UTF-8
export LANG=en_GB.UTF-8
export LANGUAGE=en_GB.UTF-8
# Ensure that we don't source again, if running under tmux
(( SOURCED_PROFILE )) && return
export SOURCED_PROFILE=1
if [ -x "$(command -v /opt/homebrew/bin/brew)" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
HOMEBREW_PREFIX=$(brew --prefix)
fi
# TODO - can be removed for intel?
# BREW_PREFIX="/usr/local"
# export BREW_PREFIX="/usr/local"
# TODO: Required?
# source <(kubectl completion bash)
# nvm // node.js // tj/n
export N_PREFIX=$HOME/n
# PATH
if [[ -f "${HOMEBREW_PREFIX}/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]]; then
source "${HOMEBREW_PREFIX}/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc"
fi
PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
PATH="/usr/local/opt/ncurses/bin:$PATH"
PATH="/usr/local/bin:$PATH"
PATH="$HOME/go/bin:$PATH"
PATH="$HOME/dev/go/bin:$PATH"
PATH="$HOME/.cargo/bin:$PATH"
PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/n/bin:$PATH"
PATH="$HOME/bin:$PATH"
PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export PATH
if [[ -r "${HOME}/.bashrc" ]]; then
source "${HOME}/.bashrc"
fi
# This causes duplicate PATH entries, but the solution is perhaps more unpleasant than the problem.
# https://github.com/rbenv/rbenv/issues/369#issuecomment-22200587
[ -x "$(command -v rbenv)" ] && eval "$(rbenv init -)"