Dotfiles
imilar to shells, many other applications store their configuration in files that start with a dot (.). They are hidden files in Linux and Unix-like operating systems. Developers and sysadmins commonly use the term “dotfiles” specifically for the subset of the hidden files that are relevant for configuring the applications and utilities that we care about. Dotfiles are typically scattered in the user home directory (~/) or other application-specific locations between other files and folders.
As with almost anything, we typically want these files to be under some version control system so that we can share them between multiple computers or revert them to a previously working configuration. There are multiple ways to achieve that, but the most common approach is to keep all dotfiles together in one folder and use a version control system like Git to track this folder as a repository. [Petr Stříbný, "Command Line Handbook"]
类似于shell,许多其他应用程序将其配置存储在以点(.)开头的文件中。这些是在Linux和类Unix操作系统中的隐藏文件。开发人员和系统管理员通常将“dotfiles”这个术语专门用于指代与我们关心的应用程序和工具配置相关的隐藏文件子集。
dotfiles通常散布在用户的主目录(~/)或其他特定于应用程序的位置,和其他文件和文件夹混在一起。与几乎所有事物一样,我们通常希望这些文件在某个版本控制系统下,以便可以在多台计算机之间共享它们或将它们恢复到之前的工作配置。有多种方法可以实现这一点,但最常见的方法是将所有dotfiles放在一个文件夹中,并使用像Git这样的版本控制系统来将该文件夹跟踪为一个代码库。 [Petr Stříbný, "Command Line Handbook"]
reference
- #dotfiles ArchSway
- #dotfiles Config Files
- #windows10 #dotfile Alacritty Settings
- #windows10 #dotfile windots