- intall some packages
# install zinit plugin manager
bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)"
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install fzf tree jq
$(brew --prefix)/opt/fzf/install
brew install neovim
- install
dotbare
zinit light kazhala/dotbare
- initalize the dotfiles
export DOTBARE_DIR="$HOME/.config"
dotbare finit -u https://github.com/kalvinnchau/dotfiles.git
- install rust, cargo and some tools
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install ripgrep
cargo install --locked bat
cargo install fd-find
cargo install du-dust
cargo install starship
cargo install git-delta
- install
mise
curl https://mise.run | sh
mise install
mise plugin add poetry
- brew packages
brew tap weaveworks/tap
brew install kubectl
brew install eksctl
brew install helm
brew install kubectx
brew install aws-iam-authenticator
Run the following to enable key repeating by holding down a key, speed controlled in System Settings -> Keyboard
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
This installs the latest SourceCodePro font set
cd ~/Library/Fonts && \
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest |
jq -r '.assets[] | select(.name == "SourceCodePro.zip") | .browser_download_url' |
xargs -I{} curl -s -L -O {} && \
unzip -o SourceCodePro.zip
Use jenv
to mange all the version fun
brew install jenv
# java intalls the latest
brew install java java11
# if you still need java8
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
mkdir -p "$HOME/.jenv/versions/"
jenv add $(/usr/libexec/java_home)
jenv add /Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home
jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
jenv global <set version>
docs at nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
nvm use <>
npm install -g npm
npm i -g prettier
npm i -g bash-language-server
npm i -g typescript-language-server
brew install shellcheck
brew install shfmt