-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_profile.darwin
37 lines (34 loc) · 945 Bytes
/
.bash_profile.darwin
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
# https://support.apple.com/en-us/HT208050
export BASH_SILENCE_DEPRECATION_WARNING=1
#
# MacPorts
#
export PATH="${PATH}:/opt/local/bin:/opt/local/sbin"
# bash completion
if [[ -r /opt/local/etc/profile.d/bash_completion.sh ]]; then
. /opt/local/etc/profile.d/bash_completion.sh
fi
# kubectl completion
if [[ -d /opt/local/etc/bash_completion.d ]]; then
if [[ -x kubectl ]]; then
kubectl completion bash > /opt/local/etc/bash_completion.d/kubectl
fi
fi
#
# Homebrew
#
eval "$(/opt/homebrew/bin/brew shellenv)"
# bash completion
if [[ -r /opt/homebrew/etc/profile.d/bash_completion.sh ]]; then
. /opt/homebrew/etc/profile.d/bash_completion.sh
fi
# kubectl completion
if [[ -d /opt/homebrew/etc/bash_completion.d ]]; then
if [[ -x kubectl ]]; then
kubectl completion bash > /opt/homebrew/etc/bash_completion.d/kubectl
fi
fi
# iTerm2
if [[ -e ~/.iterm2_shell_integration.bash ]]; then
. ~/.iterm2_shell_integration.bash
fi