mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
Update OPAM setup
Recent OPAM versions generate more elaborate setup code.
This commit is contained in:
parent
fea08d4e50
commit
417b9d429d
@ -6,9 +6,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Return if requirements are not found.
|
# Return if requirements are not found.
|
||||||
if (( ! $+commands[opam] )); then
|
if [[ ! -f "$HOME/.opam/opam-init/init.zsh" ]]; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize OPAM.
|
# Initialize OPAM.
|
||||||
eval "$(opam config env)"
|
source "$HOME/.opam/opam-init/init.zsh"
|
||||||
|
Loading…
Reference in New Issue
Block a user