Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been having this problem for a while.

My unison profile says:

root = /Users/mylogin
root = ssh://mylogin@mydesktop//home/myloign

I run Unison from everywhere in the world to sync against my Desktop, but sometimes the local network gives my Macbook a funny hostname, like: 1223.youarehere.com.

In such cases Unison says this is the 1st time I attempt to sync them, and try to start over.

What can I do?

I just want local replica to be the local replica.

share|improve this question
    
If you find a solution yourself, post it as an "answer" below. –  grawity Jan 15 '13 at 19:20
    
Done. Thank you @grawity. –  hectorpal Jan 15 '13 at 22:35

1 Answer 1

Just set the environment variable UNISONLOCALHOSTNAME to your prefered local host name. For example,

export UNISONLOCALHOSTNAME=mylaptop.
share|improve this answer

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.