2019-01-28 02:46:29 +00:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2019-02-06 15:49:55 +00:00
|
|
|
alias ls='ls -G'
|
2019-01-28 02:46:29 +00:00
|
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
|
2020-02-26 15:39:50 +00:00
|
|
|
if [ -x "$(command -v direnv)" ]; then
|
2019-02-05 11:12:12 +00:00
|
|
|
eval "$(direnv hook bash)"
|
|
|
|
fi
|
2019-02-06 15:49:55 +00:00
|
|
|
|
2019-06-06 18:46:16 +00:00
|
|
|
alias edit="$(which emacsclient) "
|
2019-02-07 00:13:17 +00:00
|
|
|
|
2020-03-31 12:01:52 +00:00
|
|
|
if [ -d "$HOME/.cache/wal" ]; then
|
|
|
|
(cat "$HOME/.cache/wal/sequences" &)
|
|
|
|
fi
|
|
|
|
|
2020-02-26 15:39:50 +00:00
|
|
|
if [ -f ~/.bashrc.local ]; then
|
2019-06-06 18:46:16 +00:00
|
|
|
source ~/.bashrc.local
|
|
|
|
fi
|
2019-10-23 20:27:28 +00:00
|
|
|
|
|
|
|
alias k=kubectl
|
2019-10-29 14:45:56 +00:00
|
|
|
alias kctx=kubectx
|
2020-04-27 21:34:31 +00:00
|
|
|
|
2020-04-28 13:14:16 +00:00
|
|
|
# Setup pyenv (https://github.com/pyenv/pyenv)
|
|
|
|
if command -v pyenv 1>/dev/null 2>&1; then
|
|
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
fi
|
|
|
|
if command -v pyenv virtualenv 1>/dev/null 2>&1; then
|
|
|
|
eval "$(pyenv virtualenv-init -)"
|
|
|
|
fi
|
|
|
|
|
2020-04-27 21:34:31 +00:00
|
|
|
export NVM_DIR="$HOME/.nvm"
|
2020-04-28 13:14:16 +00:00
|
|
|
[ -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
|
2020-04-28 18:38:50 +00:00
|
|
|
|
|
|
|
export PIPENV_VERBOSITY=-1
|
|
|
|
export PIPENV_DONT_LOAD_ENV=1
|
2020-05-05 20:53:06 +00:00
|
|
|
export PIPENV_MAX_DEPTH=20
|
2020-05-27 01:45:25 +00:00
|
|
|
|
|
|
|
export GPG_TTY=$(tty)
|
2020-05-27 09:35:22 +00:00
|
|
|
if [ -x "$(command -v gpg-connect-agent)" ]; then
|
|
|
|
gpg-connect-agent updatestartuptty /bye > /dev/null
|
|
|
|
fi
|
2020-11-02 18:20:08 +00:00
|
|
|
|
|
|
|
export BASH_SILENCE_DEPRECATION_WARNING=1
|
2020-12-13 13:39:25 +00:00
|
|
|
|
|
|
|
# AWS
|
|
|
|
export KOPS_STATE_STORE=s3://lola-kops-cluster-state
|