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 | |
| parent | 73bf5c157d6ce8d3333d1b9ffd8cf70369f98001 (diff) | |
Install SN dependencies and enable bash completion for helm/k8s
| -rw-r--r-- | .bash_profile | 21 | ||||
| -rw-r--r-- | Brewfile | 31 |
2 files changed, 37 insertions, 15 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 @@ -20,17 +20,16 @@ brew "openssl" brew "tmux" brew "youtube-dl" brew "reattach-to-user-namespace" -# brew "ruby-build" -# brew "rbenv" -# brew "pyenv" -# brew "goenv" +brew "ruby-build" +brew "rbenv" +brew "pyenv" +brew "goenv" # brew "nvm" # brew "yarn" # brew "postgresql" # brew "redis" # brew "awscli" # brew "ansible" -# brew "terraform" # brew "hivemind" brew "wifi-password" # brew "nmap" @@ -44,26 +43,36 @@ brew "wifi-password" # brew "docker-clean" # brew "tree" -tap "wtfutil/wtfutil" -brew "wtfutil" - -# cask "appcleaner" -cask "firefox" +# cask "firefox" cask "licecap" cask "hex-fiend" cask "aerial" cask "spotify" cask "flux" + +### Personal +cask "appcleaner" cask "steam" cask "openvpn-connect" cask "anki" # cask "libreoffice" # cask "viscosity" # cask "rescuetime" -# cask "docker" # cask "KnockKnock" # cask "TaskExplorer" # cask "OverSight" # cask "postman" # cask "virtualbox" # cask "vagrant" +# tap "wtfutil/wtfutil" +# brew "wtfutil" + +### Springer Nature +brew "jq" +brew "kubectl" +brew "helm" +brew "kubectx" +brew "vault" +brew "terraform" +cask "google-cloud-sdk" +cask "docker" |
