-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_profile
65 lines (51 loc) · 1.63 KB
/
dot_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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Common shell aliases and env variables
#
# Called from:
# ~/.zprofile
# ~/.bash_profile
#
export EDITOR=/usr/bin/vim
alias vi=vim
alias python=python3
alias konfig="kubectl konfig"
alias krew="kubectl krew"
prepend_to_path() {
new_path="${1}"
if [[ -d "${new_path}" ]]; then
export PATH="${new_path}:${PATH}"
fi
}
append_to_path() {
new_path="${1}"
if [[ -d "${new_path}" ]]; then
export PATH="${PATH}:${new_path}"
fi
}
# Language/tool bin directories
prepend_to_path "${HOME}/.local/bin"
prepend_to_path "${HOME}/.poetry/bin"
prepend_to_path "${HOME}/.cargo/bin"
prepend_to_path "${HOME}/go/bin"
append_to_path "${HOME}/.krew/bin"
# Local Golang install before system golang, if it exists
prepend_to_path "/usr/local/go/bin/"
# General bin directory
prepend_to_path "${HOME}/bin/"
# Tool init scripts
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
[[ -f /usr/bin/virtualenvwrapper.sh ]] && source /usr/bin/virtualenvwrapper.sh
[[ -f ${HOME}/.poetry/env ]] && source ${HOME}/.poetry/env
export SDKMAN_DIR="${HOME}/.sdkman"
[[ -s "${HOME}/.sdkman/bin/sdkman-init.sh" ]] && source "${HOME}/.sdkman/bin/sdkman-init.sh"
#OktaAWSCLI
if [[ -f "$HOME/.okta/bash_functions" ]]; then
. "$HOME/.okta/bash_functions"
fi
if [[ -d "$HOME/.okta/bin" && ":$PATH:" != *":$HOME/.okta/bin:"* ]]; then
PATH="$HOME/.okta/bin:$PATH"
fi
# Misc
# Steam setting override related whether clicking close minimizes to the tray or not
export STEAM_FRAME_FORCE_CLOSE=1