Hardcoded full paths with home directory makes it hard to share fish config across computers
I'm storing most of my dotfiles (including the fish config) in a version control repository and sharing them across all my computers. I don't have the same usernames across all of them, and z stores the full path of its files (under my home dir) in fish variables, like SETUVAR Z_DATA:/Users/christian\x2ehudon/\x2elocal/share/z/data. This breaks z when I share the dotfiles to another of my computers (where my username is different). And I can't change my username to be the same everywhere, since some of these computers are work one.
It'd be nice if z worked in a way that didn't lead to this issue, by for example storing these paths relative to the home directory, or other.
I'm storing most of my dotfiles (including the fish config) in a version control repository and sharing them across all my computers. I don't have the same usernames across all of them, and z stores the full path of its files (under my home dir) in fish variables, like
SETUVAR Z_DATA:/Users/christian\x2ehudon/\x2elocal/share/z/data. This breaks z when I share the dotfiles to another of my computers (where my username is different). And I can't change my username to be the same everywhere, since some of these computers are work one.It'd be nice if z worked in a way that didn't lead to this issue, by for example storing these paths relative to the home directory, or other.
I think the workaround is "don't sync your uvars file".
We should anyway get rid of using universal variables by default. Then this will happen less often.