-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
80 lines (60 loc) · 2.11 KB
/
bashrc
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
71
72
73
74
75
76
77
78
79
80
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
# Enables git completion if the file exists.
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
PS1='[\[\e[1;34m\]\t\[\e[m\]]\[\e[1;32m\]\u@\h\[\e[m\]:`__git_ps1`\[\e[1;35m\]\w/\[\e[m\] '
set -o vi
# Kubernetes Specific
if [ -x "$(command -v kubectl)" ]; then
source <(kubectl completion bash)
fi
alias kl="kubectl"
alias kx="kubectx"
alias kns="kubens"
# When installing global go binaries use uncomment the following:
#export GOPATH="${HOME}/src/go"
export PATH="$PATH:${HOME}/src/go/bin"
#export GOPATH="${HOME}/src/k10/go"
#export GOBIN="${GOPATH}/bin"
export GOROOT="/usr/local/lib/go"
export GO_EXTLINK_ENABLED=0
export CGO_ENABLED=0
#export PATH=$PATH:${GOBIN}
# pip3 installed bins
export PATH="$PATH:${HOME}/.local/bin"
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
#source <(awskeys use tom)
export AWS_DEFAULT_REGION="us-west-2"
alias xclip="xclip -selection c"
export EDITOR=vim
source ~/.github_token
source ~/.awsrc
export GOOGLE_APPLICATION_CREDENTIALS=/home/tom/.k10/kasten-gke-sa.json
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion