Within the dotbot configuration, a shell section can be configured to specify commands to be executed. Other than symlinking dotfiles, it can also execute commands to trigger other custom scripts.It's a bash script without any other dependencies besides git and bash.After cloning my repo, I only have to run the install script to set everything up.In fact, Dotbot is installed as a gitmodule so it can be easily updated, following the single source of truth philosophy install, even on a freshly installed system! The reason: I did the accidental deletion instead of a backup (downside #2) DotbotĪfter going through the curated list of dotfile tools, I landed on Dotbot by Anish Athalye.ĭotbot makes installing your dotfiles as easy as git clone $url & cd dotfiles &. the application does a migrationĪfter trying both solutions, I decided on symlinks. Moving symlinks may be troublesome i.e.Some applications may not like that files are links.The downsides of symlinking on the other hand: Symlinking on the other hand are like shortcuts/aliases to the original file. Accidental deletion if 'restore' is run instead of 'backup'.My first approach was 'copying' the files, as in every time there's a backup/restore, the files will be copied from the repository to their destination. Ability to backup other things like npm, pip, brewīut the biggest thing I had to figure out was it better to copy or symlink the dotfiles.Things that I already I wanted to do were: GitHub has a curated list of dotfile tools I explored and eventually came to an approach I liked. ![]() The weekend came around and I started exploring the different dotfile options available. This meant switching back and forth between both machines when the newer one was missing something I needed. Recently, I upgraded my Macbook at work but had to spend a few hours setting everything up again from scratch. ![]() How I backup, restore and sync preferences and settings across computers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |