-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
40 lines (31 loc) · 789 Bytes
/
Copy pathbashrc
File metadata and controls
40 lines (31 loc) · 789 Bytes
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
# .bashrc
# Set Variables
export GOPATH="${HOME}/.go"
export REPO="${HOME}/repo"
export GPG_TTY=$(tty)
## Kubectl auto complete
export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
source <(kubectl completion bash)
## read aliases file
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
## read function file
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
## read function file
if [ -f ~/.env_address ]; then
. ~/.env_address
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# terminal config
if [ -z "$KUBECONFIG" ]; then
PS1="%~: "
else
PS1="$KUBE_PS1"
fi
if command -v ngrok &>/dev/null; then
eval "$(ngrok completion)"
fi