Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 alias.sh. 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
1  
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
add comment

1 Answer 1

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, alias.sh (a custom alias file), and .vim/ (folder). –  Richard May 22 '12 at 20:40
add comment

Your Answer

 
discard

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.