Hasty Briefsbeta

Dotfiles Management

5 days ago
  • #dotfiles
  • #system-configuration
  • #git
  • Tracking dotfiles as a git repo with the entire root filesystem trackable.
  • Initializing a bare git repo in ~/.dotfiles with a branch named after the hostname.
  • Creating an alias 'dotfiles' to manage the repo with git commands.
  • Configuring git to not show untracked files for cleaner status checks.
  • Adding files to the repo from anywhere on the system and committing them.
  • Using 'tig' for repo state/history with an alias 'dtig'.
  • Creating a bash function 'dot' to summarize tracked files with status, path, and last commit message.
  • Benefits include easy tracking of config changes and quick recovery after system updates.
  • Potential for splitting the repo into shared and machine-specific branches for multi-machine use.
  • Recommendation to adopt this system for Linux users without existing dotfile tracking.