diff options
| author | Ahmed Abdelhalim <[email protected]> | 2022-02-01 15:32:22 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2022-02-02 14:59:54 +0100 |
| commit | 8c9267ce0d8bbe2ba6236e712fc9022333069e80 (patch) | |
| tree | 73840e507a1842b51544e5946ee094232536c08e /.bash_profile | |
| parent | 73bf5c157d6ce8d3333d1b9ffd8cf70369f98001 (diff) | |
Install SN dependencies and enable bash completion for helm/k8s
Diffstat (limited to '.bash_profile')
| -rw-r--r-- | .bash_profile | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile index 48754c2..1f2d490 100644 --- a/.bash_profile +++ b/.bash_profile @@ -16,10 +16,8 @@ export GPG_TTY=$(tty) unset SSH_AGENT_PID export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) -# ==== bash completion -if [ -f $(brew --prefix)/etc/bash_completion ]; then - . $(brew --prefix)/etc/bash_completion -fi +# Springer Nature +export VAULT_ADDR=https://vault.halfpipe.io # ==== Aliases alias wttr='curl http://wttr.in/berlin' @@ -28,6 +26,9 @@ alias srv="python3 -m http.server" # start simple server alias tagme='ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)' alias skipci='git commit --allow-empty -m "--skip-ci"' alias rgpg='pkill pinentry-tty; gpg-connect-agent updatestartuptty /bye' +alias k='kubectl' +complete -F __start_kubectl k + # alias g='git' # # look up the original completion command and replace the last with the alias # complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g @@ -87,5 +88,17 @@ if command -v thefuck 1>/dev/null 2>&1; then eval $(thefuck --alias) fi +# ==== Generate helm autocomplete stuff when it's not there +if command -v helm 1>/dev/null 2>&1; then + if [ ! -f $(brew --prefix)/etc/bash_completion.d/helm ]; then + helm completion bash > $(brew --prefix)/etc/bash_completion.d/helm + fi +fi + +# ==== load all bash completions +if [ -f $(brew --prefix)/etc/bash_completion ]; then + . $(brew --prefix)/etc/bash_completion +fi + # ==== MISC CowSay fortune | cowsay | lolcat |
