forked from addyosmani/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
70 lines (47 loc) · 2.29 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Load ~/.extra, ~/.bash_prompt, ~/.exports, ~/.aliases and ~/.functions
# ~/.extra can be used for settings you don’t want to commit
for file in ~/.{bash_prompt,exports,aliases,functions,path,k8s}; do
[ -r "$file" ] && source "$file"
done
unset file
# Homebrew for M1 Mac
eval "$(/opt/homebrew/bin/brew shellenv)"
if command -v brew >/dev/null 2>&1; then
# Load rupa's z if installed
[ -f $(brew --prefix)/etc/profile.d/z.sh ] && source $(brew --prefix)/etc/profile.d/z.sh
fi
# init rvm
#source ~/.rvm/scripts/rvm
# Case-insensitive globbing (used in pathname expansion)
#shopt -s nocaseglob
# Prefer US English and use UTF-8
#export LC_ALL="en_US.UTF-8"
#export LANG="en_US"
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
# Add tab completion for `defaults read|write NSGlobalDomain`
# You could just use `-g` instead, but I like being explicit
complete -W "NSGlobalDomain" defaults
# Initialize rbenv
# if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Add oh-my-git
source ~/Projects/Other/oh-my-git/prompt.sh
# Not currently working: https://github.com/kubernetes/minikube/issues/844
# source $(brew --prefix)/etc/bash_completion
source <(kubectl completion bash)
# Brew rbenv
eval "$(rbenv init -)"
source /Users/george/.rvm/scripts/rvm
export BASH_SILENCE_DEPRECATION_WARNING=1
export PATH="/usr/local/opt/postgresql@9.6/bin:$PATH"
# Terraform version manager: https://github.com/tfutils/tfenv
export PATH="$HOME/.tfenv/bin:$PATH"
# Terragrunt version manager: https://github.com/cunymatthieu/tgenv
export PATH="$HOME/.tgenv/bin:$PATH"
# For docker-sync
export PATH="$HOME/.rvm/gems/ruby-2.6.3/bin:$HOME/.gem/ruby/2.6.0/bin:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/usr/local/bin/google-cloud-sdk/path.bash.inc' ]; then . '/usr/local/bin/google-cloud-sdk/path.bash.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/usr/local/bin/google-cloud-sdk/completion.bash.inc' ]; then . '/usr/local/bin/google-cloud-sdk/completion.bash.inc'; fi