-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
41 lines (30 loc) · 1.16 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
# Only run on macOS
if [[ "$OSTYPE" == "darwin"* ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
[[ -r "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh" ]] && . "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh"
if [ -r ~/.bashrc ]; then
source ~/.bashrc
fi
export XDG_CONFIG_HOME="$HOME"/.config
# initialize pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# ---- Source external dependencies / completion ----
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
# ---- Cargo (Rust) ----
. "$HOME/.cargo/env"
# ---- Zoxide (Better cd) ----
eval "$(zoxide init bash)"
# ---- Starship (PROMPT) ----
eval "$(starship init bash)"
# ---- Direnv (Environment Management) ----
eval "$(direnv hook bash)"
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/charlie/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)
source <(kubectl completion bash)
complete -o default -F __start_kubectl k