Run the automatic installation script:
curl -Ls https://gist.github.com/dhnza/6b384f52ce32342761cc00f9d26311fa/raw/dotfiles-init.sh | /bin/bash
Clone dotfiles into a bare git repository. The git tracking information will be stored in ~/.dotfiles
.
git clone --bare git@github.com:dhnza/dotfiles.git ~/.dotfiles
For convenience, create a dotfiles
alias for managing the repository.
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
Disable showing files not tracked by the git repository,
dotfiles config --local status.showUntrackedFiles no
Backup your existing configuration into ~/.dotfiles-backup
.
mkdir -p ~/.dotfiles-backup && dotfiles checkout 2>&1 | egrep '\s+\.' | xargs -i mv {} ~/.dotfiles-backup
Checkout your dotfiles to your $HOME
:
dotfiles checkout
My configuration expects the following packages are installed.
- vim
- zsh
- cargo (Rust package manager)
fd-find
ripgrep
bat
git-delta
exa
zoxide
navi
- universal-ctags
To install (most of) these automatically, run the .dotfiles-install.sh
script included in this repository.
Some tools require additional manual configuration, as described below.
The Powerlevel10k zsh
theme requires the custom Meslo Nerd Font to correctly draw the various glyphs and symbols used by the theme.
See the Powerlevel10k docs for details on how to install the font and enable it for your terminal app.
See iTerm2 preferences for details on how to load and sync iTerm2 preferences with the files tracked by this repository.