From 417b9d429deb283e7d95f077dda3aa87cd6b1216 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Thu, 24 Apr 2014 16:35:33 +0200 Subject: [PATCH] Update OPAM setup Recent OPAM versions generate more elaborate setup code. --- modules/ocaml/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ocaml/init.zsh b/modules/ocaml/init.zsh index 9944a63..b09c7eb 100644 --- a/modules/ocaml/init.zsh +++ b/modules/ocaml/init.zsh @@ -6,9 +6,9 @@ # # 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"