This repository contains the dotfiles I use to configure my development environment and sync to GitHub Codespaces (read more in my blog post).
These are instructions on how to set up your local environment by creating symbolic links (symlinks) to the dotfiles in this repo:
- Create dotfiles repo, ie:
mkdir ~/dotfiles && cd ~/dotfiles && git init - Run the
ln -scommands below to create the appropriate symlinks - Commit your changes to the dotfiles repo
ln -s ~/dotfiles/.zshrc ~/.zshrc
ln -s ~/dotfiles/.p10k.zsh ~/.p10k.zsh
ln -s ~/dotfiles/.gitconfig ~/.gitconfigTo remove the symlinks, run the following commands:
unlink ~/.zshrc
unlink ~/.p10k.zsh
unlink ~/.gitconfiginstall.sh installs zsh plugins, copies over .zshrc and .p10k.zsh, and sets other defaults (like directory text color and time zone).
Mark install.sh as executable: git add install.sh --chmod=+x
See link for more info
Running this command exports formulae, casks, and VS Code extensions to a file:
# creating a Brewfile
brew bundle dump --file=~/dotfiles/Brewfile --force
# installing a Brewfile
brew bundle install --file=~/dotfiles/BrewfileMy default profile is saved as Default.code-profile (exported manually via Code > Settings > Profiles)
Extensions are exported via the brew command above.
My iTerm2 profile is saved as iterm2-profile.json (exported manually via iTerm2 > Settings > Profiles > Other Actions > Save Profile as JSON)
Exporting a list of installed gh extensions:
gh extension list | awk '{print $3}' > gh-extensions-list.txtIf OhMyZsh is not installed (e.g. on a new machine), run the following command:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"omz update
git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull