Last active
February 5, 2024 04:42
-
-
Save rahulkj/c1a9142d0da5ab8eba49eba54da31a02 to your computer and use it in GitHub Desktop.
install_clis_mac.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Determine latest ruby version | |
DEFAULT_RUBY_VERSION=$(curl https://cache.ruby-lang.org/pub/ruby/index.txt | tail -1 | awk '{split($0,a," "); print a[1]}' | cut -d'-' -f2) | |
# Install homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# Install gpg | |
brew install gnupg | |
brew tap cloudfoundry/tap | |
brew tap pivotal/tap | |
brew tap pivotal-cf/om https://github.com/pivotal-cf/om | |
brew tap rahulkj/tap | |
brew tap minio/stable | |
brew tap carvel-dev/carvel | |
brew tap vmware-tanzu/kpack-cli | |
brew install azure-cli bbr bosh-cli \ | |
cf-cli concourse cred-alert credhub-cli \ | |
direnv fly git git-flow go helm \ | |
inetutils jq kubernetes-cli maven minio/stable/mc mysql \ | |
nmap om openjdk openssl pivnet-cli terraform tree \ | |
uaa-cli vault watch wget yq ytt \ | |
kbld kapp kwt imgpkg vendir zsh ruby kp podman-desktop \ | |
skopeo vmware-tanzu/tanzu/tanzu-cli | |
echo 'export GOPATH=~/Documents/go' >> ~/.zshrc | |
echo 'export GOBIN=$GOPATH/bin' >> ~/.zshrc | |
echo 'export CLIS=~/Documents/clis' >> ~/.zshrc | |
echo 'export PATH=$PATH:$GOBIN:$CLIS' >> ~/.zshrc | |
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc | |
echo 'alias k=kubectl' >> ~/.zshrc | |
echo "[[ $commands[kubectl] ]] && source <(kubectl completion zsh)" >> ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment