Specifying path in a preference file in Unison
- by Curious2learn
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