arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.18555cs.SEcs.SI
收藏

包含用户特定配置文件的 Dotfiles 仓库的实证研究

An Empirical Study of Dotfiles Repositories Containing User-Specific Configuration Files

Wenhan Zhu, Michael W. Godfrey

AI总结:

本文对GitHub上的dotfiles仓库进行了实证研究,发现其维护在开发者中普遍存在,更新主要由调整配置和项目元管理驱动,并讨论了其部署挑战及对工具设计的启示。

摘要:

将用户特定配置文件存储在“dotfiles”仓库中是软件开发者的一种常见做法,有数十万人选择在 GitHub 上公开托管他们的仓库。这种做法不仅为开发者提供了一种针对其重要配置文件的简单备份机制,还促进了分享想法以及向他人学习如何最好地配置对其日常工作流程至关重要的应用程序。然而,我们目前对这些仓库共享实践的理解是有限的,且大多是轶事性的。为了填补这一空白,我们进行了一项研究以更深入地探讨这一现象。从收集和分析 GitHub 上公开托管的 dotfiles 仓库开始,我们发现维护 dotfiles 在开发者中非常普遍。值得注意的是,我们发现在 GitHub 上最受关注的 top 500 用户中,有 25.8% 维护着某种形式的公开可访问的 dotfiles 仓库。其中,像 Vim 这样的文本编辑器以及 bash 和 zsh 等 shell 的配置是最常被跟踪的。我们的分析显示,更新 dotfiles 主要是受调整配置(63.3%)和项目元管理(25.4%)的需求驱动。令人惊讶的是,我们发现代码变动历史模式中观察到的 dotfiles 类型没有显著差异,这表明 dotfile 修改的频率更多取决于开发者,而不是特定 dotfile 及其关联应用程序的属性。最后,我们讨论了与管理 dotfiles 相关的挑战,包括对可靠且有效的部署机制的需求,以及从 dotfiles 中获得的见解如何通过提供真实世界的使用信息来为工具设计者提供参考。

英文摘要:

Storing user-specific configuration files in a "dotfiles" repository is a common practice among software developers, with hundreds of thousands choosing to publicly host their repositories on GitHub. This practice not only provides developers with a simple backup mechanism for their essential configuration files, but also facilitates sharing ideas and learning from others on how best to configure applications that are key to their daily workflows. However, our current understanding of these repository sharing practices is limited and mostly anecdotal. To address this gap, we conducted a study to delve deeper into this phenomenon. Beginning with collecting and analyzing publicly-hosted dotfiles repositories on GitHub, we discovered that maintaining dotfiles is widespread among developers. Notably, we found that 25.8% of the top 500 most-starred GitHub users maintain some form of publicly accessible dotfiles repository. Among these, configurations for text editors like Vim and shells such as bash and zsh are the most commonly tracked. Our analysis reveals that updating dotfiles is primarily driven by the need to adjust configurations (63.3%) and project meta-management (25.4%). Surprisingly, we found no significant difference in the types of dotfiles observed across code churn history patterns, suggesting that the frequency of dotfile modifications depends more on the developer than the properties of the specific dotfile and its associated application. Finally, we discuss the challenges associated with managing dotfiles, including the necessity for a reliable and effective deployment mechanism, and how the insights gleaned from dotfiles can inform tool designers by offering real-world usage information.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑