Skip to content

Commit

Permalink
Fix opam init menu default
Browse files Browse the repository at this point in the history
Follow up/fix to ocaml#5456
  • Loading branch information
kit-ty-kate authored and MisterDA committed May 15, 2023
1 parent 56b82e6 commit e496768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ users)
* [BUG] Fix display of pinned packages in action list [#5079 @rjbou]
* [BUG] Fix spaces in root and switch dirs [#5203 @jonahbeckford]
* Use menu for init setup [#5057 @AltGr; #5217 @dra27]
* ✘ Change default from no to yes for shell update [#5456 @rjbou]
* ✘ Change default from no to yes for shell update [#5456 #5540 @rjbou @kit-ty-kate]
* Do not show --yes and --no as special global options when using cmdliner >= 1.1 [#5269 @kit-ty-kate]
* ◈ Add `tree` subcommand to display a dependency tree of currently installed packages [#5171 @cannorin - fix #3775]
*`tree` subcommand now supports `--json` option [#5303 @cannorin - fix #5298]
Expand Down
4 changes: 2 additions & 2 deletions src/state/opamEnv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ let setup
match
OpamConsole.menu "Do you want opam to configure %s?"
(OpamConsole.colorise `bold (string_of_shell shell))
~default ~no:`Yes ~options:[
~default ~no:`No ~options:[
`Yes, Printf.sprintf "Yes, update %s"
(OpamConsole.colorise `cyan (OpamFilename.prettify dot_profile));
`No_hooks, Printf.sprintf "Yes, but don't setup any hooks. You'll \
Expand Down Expand Up @@ -961,7 +961,7 @@ let setup
let default = match env_hook with
| Some true -> `Yes
| Some false -> `No_hooks
| None -> `No
| None -> `Yes
in
menu shell dot_profile default
in
Expand Down

0 comments on commit e496768

Please sign in to comment.