Closed jankovidakovic closed 2 months ago
https://anishathalye.com/managing-your-dotfiles/ This article explains the reasons why dotbot is cool.
Article summary:
the best way to track dotfiles is to have them all in one directory and then symlink configs to the correct places on install
symlink is better than copy because symlinks are synchronized automatically
alternative to dotbot is a simple installation script that symlinks everything, but these scripts are often not robust enough
dependencies and plugins should be managed by submodules
git submodule add link_to_submodule submodule_name
git submodule update --init --recursive
git submodule update --init --remote
(note: whats the diff between this and last?)local customization:
if local_dotfile exists -> source it
(_note: does this mean that we install local dotfiles before main dotfiles? because if the main dotfiles are installed first and local_dotfiles are installed later, do the localdotfiles ever get sourced?)consistent path to dotfiles can be achieved by symlinking ~/.dotfiles
to dotfiles during installation
dotfiles/bin
can contain bash scripts, which can be sourced by just adding dotfiles/bin
to PATH
Dotbot is successfully set up with baseline configurations for neovim, zsh, sway, and tmux.
The goal is to setup dotbot (or some other configuration tool).
Requirements: