

In any case if you write a good dotfiles repo with dotbot you need to keep the idempotency 3 of the bot execution so you are mathematically certan that the execution don’t make different installation with the same command. There are some files not used like a requirements.txt or choco.ps1 that I don’t know if it’s a good idea. Which use the configuration describe in this post. Some example is ssh or zsh or the emacs config in my repo In this way I can build multiple file for all the case I need. In this yaml the bot links in the path ~/.gitconfig to the file gitconfig and make the same with ~/.gitignore_global. Now I need to write a meta/base.yaml file for the default command:
#REMOVE DOTBOT INSTALL#
And you can also add plugins in the command as the first install script. This new script can run with or without profile. Make particolar attention of the begginning of the script because is were you can find the configuration for the script. In my case I have a multiple config installerĭEFAULT_CONFIG_PREFIX = "default" CONFIG_SUFFIX = ".conf.yaml" DOTBOT_DIR = ".dotbot" DOTBOT_BIN = "bin/dotbot" BASEDIR = " $(cd " $(dirname "\$ " -c "$configFile " rm -f "\$configFile" done The best way to use (and the only one) is to make the plugin repo into a submodule so it can be updated and will be always an unicum. And there are multiple plugin for some package manager ( pip, rust, apt, brew…) which can be usefull.

This is a project python where you can write an install script from a template and write one or more _.conf.yaml with the instructions.
#REMOVE DOTBOT UPDATE#
So I search for a system for launch a command and update all and I find it: dotbot.

So for some time I use a notebook ( a book where i write notes not a pc) where I log the change and this make some problems. And I need also some of this config on all my machine like the ssh’s config. I need to have my dotfiles synced and working on a Linux Machine (Arch), an Apple Machine and a Windows Machine… So not only I have multiple versions of configs but for multiple platform. Now some time has pass and I have a BIG FAT PROBLEM.
#REMOVE DOTBOT CODE#
Github suggest it was the 20 of Novembre the first version of the repo but I remember I was trying multiple idea of it and only later make a repo with clean code so It was sometime in November. With this article and some copy-and-paste from other dotfiles repo’s on Github I made mine So, in the end of the 2017 i find an article about dotfiles: Managing your Dotfiles If you ever use Unix based system you are familiar with dotfiles for configuration.Īny program has some of this file or folders laying arrount in your user root.Īnd many time it was a booring job to setup all your stuff before starting with all the work because I want the config to be the same every where I work.
