![]() That is, the installer should be able to be run multiple times without causing any problems. Ideally, bootstrap configurations should be idempotent. Dotbot also supports user plugins for custom commands. Currently, Dotbot knows how to link files and folders, create folders, execute shell commands, and clean directories of broken symbolic links. Configurationĭotbot uses YAML or JSON-formatted configuration files to let you specify how to set up your dotfiles. JSON configuration files are conventionally named. The configuration file is typically written in YAML, but it can also be written in JSON (which is a subset of YAML). If you prefer, you can install Dotbot from PyPI and call it as a command-line program: If using a subrepo, run git fetch & git checkout origin/master in the Dotbot directory. install, otherwise the old version of Dotbot will be checked out by the install script. If using a submodule, run git submodule update -remote dotbot, substituting dotbot with the path to the Dotbot submodule be sure to commit your changes before running. Setting up Dotbot as a submodule or subrepo locks it on the current version. You can change either of these parameters by editing the variables in the install script appropriately. By default, the script assumes that the configuration is located in the Dotbot submodule is located in dotbot. Note: The install script is merely a shim that checks out the appropriate version of Dotbot and calls the full Dotbot installer. To help you get started we have an example config file as well as configuration documentation for the accepted parameters. ![]() To get started, you just need to fill in the and Dotbot will take care of the rest. If you are using PowerShell instead of a POSIX shell, you can use the provided install.ps1 script instead of install. Hg init # initialize repository if needed echo "dotbot = " >. touch ">Ĭd ~/.dotfiles # replace with the path to your dotfiles hgsub git clone cp dotbot/tools/hg-subrepo/install. ![]() If you're using Git, you can add Dotbot as a submodule: The following will help you get set up using Dotbot in just a few steps. Or, if you're just looking for some inspiration, we've got you covered. If you'd rather use a template repository, check out dotfiles_template. Great! You can automate the creation of your dotfiles by using the user-contributed init-dotfiles script. See this blog post or more resources on the tutorials page for more detailed explanations of how to organize your dotfiles. ![]() Dotbot can also be a drop-in replacement for any other tool you were using to manage your dotfiles, and Dotbot is VCS-agnostic - it doesn't make any attempt to manage your dotfiles. It does less than you think, because version control systems do more than you think.ĭotbot is designed to be lightweight and self-contained, with no external dependencies and no installation required.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |