Specifying path in a preference file in Unison
Posted
by
Curious2learn
on Stack Overflow
See other posts from Stack Overflow
or by Curious2learn
Published on 2013-10-20T15:51:00Z
Indexed on
2013/10/20
15:53 UTC
Read the original article
Hit count: 358
I am using Unison to sync a folder on my local computer with one on a server. I am using a unison preference file for this. If I specify the path of the local folder using Method 1 (see below) things work well. But Method 2 does not work. I would like to use something like Method 2 because I want to use the same preference file (synced using Dropbox) on two different computers. But the usernames are different on these two computers and I cannot change the usernames. Any ideas how this can be achieved?
Thank you.
METHOD 1 (works)
root = /Users/username1/Dropbox/path_to_folder/folder
METHOD 2a (Does not work)
root = ~/Dropbox/path_to_folder/folder
METHOD 2b (Does not work)
root = $HOME/Dropbox/path_to_folder/folder
© Stack Overflow or respective owner