diff --git a/modules/ocaml/init.zsh b/modules/ocaml/init.zsh index 2e5b71e5..570e1ec0 100644 --- a/modules/ocaml/init.zsh +++ b/modules/ocaml/init.zsh @@ -6,10 +6,10 @@ # # Return if requirements are not found. -if (( ! $+commands[opam] )); then +if [[ ! -f "$HOME/.opam/opam-init/init.zsh" ]]; then return 1 fi # Initialize OPAM. -eval "$(opam config env)" +source "$HOME/.opam/opam-init/init.zsh"