Allow setting config directory on windows to a location within WSL 2 #41205
JakeDern
started this conversation in
Config, Settings and Keymaps
Replies: 1 comment
-
|
I would also love being able to override the configuration directory. On my windows machined at work and home- I use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
I do all of my development from within WSL2 and currently using neovim. All of my dotfiles are in github, cloned to WSL2, and symlinked so that it's easy to commit any tweaks back up and replicate to my other machines. I'm super excited to give Zed a try instead now that the Windows beta is out and supports remote development with WSL2, but one thing I ran into was that Zed always seems to look in the Windows AppData location for the setting.json and keymap.json files. I'd like to keep those files with the rest in my WSL2 environment if possible.
Possible solutions
This might boil down to being able to override the config folder just like XDG_CONFIG_HOME on linux which seems to be supported. If there were an equivalent for Windows then maybe something as simple as setting
WINDOWS_CONFIG_HOME=\\wsl.localhost\Ubuntu-22.04\home\foo\.configcould make this work.Another idea would be to use a CLI argument when launching zed from WSL. Maybe something like
zed --use-remote-settings ..Beta Was this translation helpful? Give feedback.
All reactions