-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
137 lines (108 loc) · 3.05 KB
/
.bashrc
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
case $- in # bash executions flags list.
*i*) ;; # if contains 'i' flag continue.
*) return ;; # else break.
esac
export OSH=$HOME/.oh-my-bash
OSH_THEME="gitbasher" # custom theme
OMB_USE_SUDO=true
completions=(
awscli
brew
defaults
django
docker-compose
docker
gem
gh
git
go
gradle
kubectl
makefile
maven
minikube
nvm
pip
pip3
ssh
terraform
tmux
vagrant
virtualbox
)
aliases=(
general
)
plugins=(
ansible
aws
bashmarks
brew
git
golang
kubectl
npm
nvm
)
source "$OSH"/oh-my-bash.sh
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR="vim"
else
export EDITOR="nvim"
fi
export PATH="$PATH:."
test -d "$HOME/.local/bin" && export PATH="$PATH:$HOME/.local/bin"
test -d "$HOME/.nvm" || {
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
}
test -f $HOME/.asdf/asdf.sh && . $HOME/.asdf/asdf.sh
test -f $HOME/.asdf/completions/asdf.bash && . $HOME/.asdf/completions/asdf.bash
test -f "$HOME/.cargo/env" && . "$HOME/.cargo/env"
test -d $HOME/.cargo/bin && export PATH="$PATH:$HOME/.cargo/bin"
test -d $HOME/.yarn/bin && export PATH="$PATH:$HOME/.yarn/bin"
test -d $HOME/.config/yarn/global/node_modules/.bin && export PATH="$PATH:$HOME/.config/yarn/global/node_modules/.bin"
# pnpm
test -d $HOME/.local/share/pnpm && {
export PNPM_HOME="$HOME/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
}
# add Pulumi to the PATH
test -d $HOME/.pulumi/bin && export PATH=$PATH:$HOME/.pulumi/bin
# msys2 paths
if [[ "$(uname -a)" == *"MSYS"* ]]; then
test -d /c/msys64/mingw64/bin && export PATH="$PATH:/c/msys64/mingw64/bin"
test -d /c/msys64/usr/bin && export PATH="$PATH:/c/msys64/usr/bin"
# tmux fix
tmux() {
TMUX="command tmux ${@}"
SHELL=/usr/bin/bash script -qO /dev/null -c "eval $TMUX"
}
fi
# MacPorts
test -d "/opt/local/bin" && export PATH="/opt/local/bin:$PATH"
test -d "/opt/local/sbin" && export PATH="/opt/local/sbin:$PATH"
# Volta
test -d "$HOME/.volta" && export PATH="$HOME/.volta:$PATH"
has_tmux=$(command -v tmux 2>/dev/null)
[[ -n $has_tmux ]] && alias clear='clear && [[ -n $(pgrep tmux) ]] && tmux clear-history || clear'
# Setting PATH for Python 3.11
# The original version is saved in .bash_profile.pysave
MACOS_PY_BIN_FOLDER="/Library/Frameworks/Python.framework/Versions/3.11/bin"
test -d $MACOS_PY_BIN_FOLDER && export PATH="$MACOS_PY_BIN_FOLDER:${PATH}"
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
test -d "$HOME/.rd/bin" && export PATH="$HOME/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)
export VOLTA_FEATURE_PNPM=1
test -d "$HOME/.tfenv/bin" && export PATH="$HOME/.tfenv/bin:$PATH"
export BASH_SILENCE_DEPRECATION_WARNING=1
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
if [ -n "$(command -v javac)" ]; then
export JAVA_HOME="$(dirname $(which java))"
fi
test -f ~/bin/boot && source ~/bin/boot
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH=$BUN_INSTALL/bin:$PATH