Skip to content

Instantly share code, notes, and snippets.

@tan-i-ham
Last active October 3, 2022 01:47
Show Gist options
  • Save tan-i-ham/a6ebc96d21004dc1305f15a50ad99615 to your computer and use it in GitHub Desktop.
Save tan-i-ham/a6ebc96d21004dc1305f15a50ad99615 to your computer and use it in GitHub Desktop.
# homebrew, ref: https://docs.brew.sh/Installation#1
mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
# sdkman & java
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java
# zsh
brew install zsh
# oh-my-zsh, ref: https://ohmyz.sh/#install
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# k8s
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl"
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl.sha256"
echo "$(cat kubectl.sha256) kubectl" | shasum -a 256 --check
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
sudo chown root: /usr/local/bin/kubect
echo "alias k=\"kubectl\" >> ~/.zshrc
source ~/.zshrc
k version --client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment