-3

I have 3 computers I work on regularly - a work laptop, personal laptop and home PC. I also have .rc files for vim, bash, zsh, git, hg etc that I need to maintain across the 3 physical computers. Currently I am using a publicly hosted hg repository to keep the rc files synchronized between the 3 computers, but it still feels like a very manual process.

Is there an open source tool that makes it easier to synchronize rc files across multiple computers?

too much php
  • 88,666
  • 34
  • 128
  • 138
  • Also asked in superuser.com: http://superuser.com/questions/1052173/tools-to-manage-a-portable-workstation-configuration – too much php Mar 13 '16 at 09:33
  • Please do **not** crosspost. See [Is cross-posting a question on multiple Stack Exchange sites permitted if the question is on-topic for each site?](http://meta.stackexchange.com/q/64068) – DavidPostill Mar 13 '16 at 12:27
  • 1
    With 38k+ rep I would expect you to know basic things like not crossposting :/ – DavidPostill Mar 13 '16 at 12:27
  • 1
    And you should also know that asking for software rec (tools) is off-topic. – DavidPostill Mar 13 '16 at 12:29
  • @DavidPostill you'd also think they'd know not to post a garbage answer 8 months later. I suspect a hijacked account, after many years of inactivity. – miken32 Dec 22 '16 at 22:42
  • @miken32 Or he is hat hunting :) – DavidPostill Dec 22 '16 at 23:01
  • @DavidPostill: Or he's suffering from brain damage from Too Much PHP. :P – Ken White Dec 22 '16 at 23:17
  • 1
    @DavidPostill: *sigh*. I posted that answer in the hope that it would help other people discover https://dotfiles.github.io/ which is a fantastic resource for programmers, but hard to find if you don't know to google the word "dotfiles". I earned most of my rep many years ago by answering questions and helping people regardless of whether or not the questions fit the guidelines, and I'm saddened to see that the next generation of stackoverflowers are more interested in finding excuses to downvote and delete content than they are in helping other people. – too much php Jan 18 '17 at 06:56

1 Answers1

-1

You can have your shell update your local repo on login, then source your files.

All this should come with a check if your local repo is head.

Pseudo code time as I'm at work and dont have hg installed

if [[ test if sync needed ]]; then do;
    hg update repo
    source dotfiles.sh
done;
esbenab
  • 9
  • 1
  • 2