Skip to content

gavinest/dotfiles

Repository files navigation

Dotfiles

Managed with chezmoi. Check out this blog post.

Common chezmoi commands

# edit a file
chezmoi edit ~/.zshrc

# see the change that would be applied
chezmoi diff

# apply the change
chezmoi apply

# change to the chezmoi directory to commit changes
chezmoi cd

Setting up a new machine

  1. Install Oh-my-zsh and custom plugins
# custom plugins

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
  1. Install Homebrew and then brew managed deps
# save the file locally as Brewfile. https://github.com/gavinest/dotfiles/blob/main/Brewfile

# install the dependencies
brew bundle 
  1. Install chezmoi using the dotfiles repo command
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply $GITHUB_USERNAME
  1. Use vim-plug to install vim extensions
# install vimplug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

# enter vim then run
:PlugInstall
  1. global python setup
asdf plugin-add python

asdf install python latest

asdf global python $(asdf list python | sort -V | tail -n 1)

pip install --upgrade pip && pip install ipython

Releases

No releases published

Packages

No packages published

Languages