Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on a few different servers on any given day. I'm starting to really tweak two files in my bash profile: .vimrc and Would anyone have a recommended way to save and sync these two files. Perhaps using rsync or unison (over ssh using a predefined shared key)? Has anyone set this up before?

share|improve this question
Did you try Dropbox? – Amith KK May 8 '12 at 15:17
That's not a bad option but I have my own server. I'd like to use rsync or unison. I'm just curious what other folks are doing. I'm hesitant towards dropbox because these are development and production servers. I'd like to not run more processes on these servers. A manual rsync may be all I need. – Richard May 8 '12 at 17:03
A version control system like subversion or git. – geirha May 8 '12 at 20:48
@geirha - That comment should really be down in the answers section below as it is a great idea. Thanks!! – Richard May 8 '12 at 21:04
See also Tips for putting ~ under source control – Gilles Jun 13 '12 at 15:03
up vote 5 down vote accepted

Use a version control system like subversion or git. As a bonus, if used correctly, you get the answer to the inevitable question; Why on earth did I put that in there?

share|improve this answer
can you elaborate on that second sentence of yours? – 0xC0000022L May 8 '12 at 22:33
@STATUS_ACCESS_DENIED I'm assuming he's talking about the log messages for the commits providing documentation for your changes. – Mike May 8 '12 at 22:55
@Michael: ah, makes sense. Thanks. – 0xC0000022L May 8 '12 at 23:00
To update everyone, I've started this today using bitbucket. So far in the repo, I have the .bashrc, .vimrc, (a custom alias file), and .vim/ (folder). – Richard May 22 '12 at 20:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.