-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
executable file
·56 lines (39 loc) · 1.53 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
51
52
53
54
55
56
#!/usr/bin/env bash
#!/usr/bin/env bash
set +x
brew_prefix=$(brew --prefix)
## Environment Variables
export HISTCONTROL=ignoreboth:erasedups
export PATH="${HOME}/go/bin:${PATH}"
export PATH="${HOME}/.local/bin:${PATH}"
RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src/:${PATH}"
export RUST_SRC_PATH
export CLICOLOR=2
## Aliases
if [ -f ~/.bash_aliases ]; then
# shellcheck source=/dev/null
source "${HOME}/.bash_aliases"
fi
## Aliases + Autocompletion
__git_complete gti __git_main
complete -o default -o nospace -F __start_kubectl kbuectl
complete -o default -o nospace -F __start_kubectl k
## GIT Prompt
if [ -f "${brew_prefix}/opt/bash-git-prompt/share/gitprompt.sh" ]; then
# shellcheck disable=SC2034
__GIT_PROMPT_DIR="${brew_prefix}/opt/bash-git-prompt/share"
# shellcheck source=/dev/null
source "${brew_prefix}/opt/bash-git-prompt/share/gitprompt.sh"
fi
## AutoJump and FASD
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
eval "$(fasd --init auto)"
## Direnv
eval "$(direnv hook bash)"
alias vim=nvim
alias vi=nvim
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/henderjm/google-cloud-sdk/path.bash.inc' ]; then . '/Users/henderjm/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/henderjm/google-cloud-sdk/completion.bash.inc' ]; then . '/Users/henderjm/google-cloud-sdk/completion.bash.inc'; fi