Neovim
inside tmux
inside kitty
inside yabai
on MacOS.
Clone the repo into a bare repository inside $HOME
:
git clone --bare git@github.com:oessaid/dots.git $HOME/.dotfiles
Define the management command alias (dots
) inside the current shell scope:
alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
Checkout the actual content from the bare repository to $HOME
dots checkout
Errors might pop up at this point because $HOME
might have some stock versions of configuration files (.bashrc
, .zshrc
, etc.). Delete them (or back them up), then re-run the above command.
Ignore any untracked files (to avoid unnecessary clutter of dots status
) using
dots config --local status.showUntrackedFiles no
Updating dotfiles and pushing changes becomes very easy:
dots status
dots add .zhsrc
dots commit -m "Add .zshrc"
dots push