Story Details

  • Show HN: Lnk – Git-native dotfiles manager

    Posted: 2025-05-24 11:41:19

    Lnk is a command-line tool designed to simplify managing dotfiles using Git. It leverages symbolic links and a bare Git repository within your home directory to track and synchronize configuration files across different machines. Lnk allows you to selectively link specific files or directories, commit changes like any other Git repository, and easily clone your dotfiles setup to new systems. This Git-centric approach provides version control, backup, and portability for your personalized system configurations.

    Summary of Comments ( 42 )
    https://news.ycombinator.com/item?id=44080410

    HN users generally praised lnk for its simplicity and git-centric approach to managing dotfiles, appreciating that it avoids complex syncing mechanisms. Some questioned the value proposition over simpler existing solutions like using a Git bare repository or GNU Stow, sparking a discussion about the nuances of different approaches. One commenter pointed out potential issues with shell aliases and functions being sourced twice when using lnk with tools like zsh, suggesting improvements to the README for clarity. Others discussed alternative strategies for managing dotfiles, highlighting the subjective nature of the problem and diverse preferences within the community. Several users offered specific suggestions for enhancing lnk, such as supporting Xcode configuration files and improving documentation around uninstalling packages.