Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use a git repository, cloned in .myconfigs, with a script that create a symlink for any file in it (apart from .git and a couple more)

https://github.com/riquito/configs

The usage is

    git clone git@github.com:username/configs.git ~/.myconfigs
    cd ~/.myconfigs
    ./reinstall.sh
Whenever I update the repository, maybe adding files, I run this in the other computers:

    cd ~/.myconfigs
    git pull --ff-only
    ./reinstall.sh
which simply refresh the symlinks (I should remove stale symlinks now that I think about it, for removed configurations - never happened yet)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: