-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bash_profile
39 lines (32 loc) · 1.06 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
source_if () {
if [ -d "$(brew --prefix)/etc/bash_completion.d/$1" ]; then
. "$(brew --prefix)/etc/bash_completion.d/$1"
fi
}
# Import all files
for DOTFILE in ~/.{aliases,env,functions,path,prompt,extra}
do
[ -r "$DOTFILE" ] && [ -f "$DOTFILE" ] && source "$DOTFILE"
done
unset DOTFILE;
if [ -d "$(brew --prefix)/etc/bash_completion.d" ]; then
source_if "bash-builtins"
source_if "brew"
source_if "docker"
source_if "git-completion.bash"
source_if "hub.bash_completion.sh"
source_if "kubectl"
source_if "aws_bash_completer"
source_if "helm"
source_if "kops"
fi
if [ -f "$(brew --prefix)/opt/git/etc/bash_completion.d/git-prompt.sh" ]; then
GIT_PROMPT_THEME=Default
source "$(brew --prefix)/opt/git/etc/bash_completion.d/git-prompt.sh"
source "$(brew --prefix)/opt/git/etc/bash_completion.d/git-completion.bash"
__git_complete g __git_main
__git_complete gc _git_checkout
__git_complete gm __git_merge
__git_complete gp _git_pull
fi
export PATH="/usr/local/opt/curl/bin:/usr/local/sbin:$PATH"