From 914294b745e36db143158ed44117c0d687025982 Mon Sep 17 00:00:00 2001 From: yasu Date: Tue, 3 May 2016 16:42:29 +0900 Subject: [PATCH] Update init.zsh --- 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 b09c7eb2..427820ca 100644 --- a/modules/ocaml/init.zsh +++ b/modules/ocaml/init.zsh @@ -6,9 +6,9 @@ # # Return if requirements are not found. -if [[ ! -f "$HOME/.opam/opam-init/init.zsh" ]]; then +if [[ ! -f "${OPAMROOT:-$HOME/.opam}/opam-init/init.zsh" ]]; then return 1 fi # Initialize OPAM. -source "$HOME/.opam/opam-init/init.zsh" +source "${OPAMROOT:-$HOME/.opam}/opam-init/init.zsh"