Skip to content

kalvinnchau/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

init

  1. 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
  1. install dotbare
zinit light kazhala/dotbare
  1. initalize the dotfiles
export DOTBARE_DIR="$HOME/.config"
dotbare finit -u https://github.com/kalvinnchau/dotfiles.git
  1. 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
  1. install mise
curl https://mise.run | sh
mise install
mise plugin add poetry
  1. brew packages
brew tap weaveworks/tap
brew install kubectl
brew install eksctl
brew install helm
brew install kubectx
brew install aws-iam-authenticator

misc notes

enable key repeats

Run the following to enable key repeating by holding down a key, speed controlled in System Settings -> Keyboard

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

deprecated

install nerd fonts

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

jvm

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>

nvm/node

docs at nvm-sh/nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash

nvm use <>

nvim lsp

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published