forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set and persist $HOME on Windows in opam init
Windows setups will not normally have $HOME set, which causes opam init to initialise in the cwd. Native Windows updated to query the user's Documents folder and use that location instead. Additionally, opam init offers to save $HOME permanently to the user's registry, as having HOME set is important for OCaml (so that .ocamlinit can be found) and also for related tools (Vim, for example, can display and use ~\ paths if $HOME is set) Signed-off-by: David Allsopp <david.allsopp@metastack.com>
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters