[opam-devel] Which shell files are updated

Thomas Gazagnaire thomas at ocamlpro.com
Mon Aug 5 18:01:41 BST 2013

See https://github.com/OCamlPro/opam/blob/master/src/core/opamMisc.ml#L436

if .bash_profile exists, this one will be picked-up instead of .bashrc.

(and see http://shreevatsa.wordpress.com/2008/03/30/zshbash-startup-files-loading-order-bashrc-zshrc-etc/ for the bigger picture :p)

On Aug 5, 2013, at 5:50 PM, Anil Madhavapeddy wrote:

> Thomas, Louis,
> This query came up in the RWO installation chapter comments, about which files to update:
> https://github.com/ocamllabs/rwo-comments/issues/2129
>> Most people - definitely those on Fedora - will want this in ~/.bashrc, 
>> not ~/.bash_profile. ~/.bashrc is for interactive shells.
> Will OPAM 1.1 deal with this correctly?  I think we want OPAM to be active in
> non-interactive shells too, or else any shell scripts that invoke OCaml will fail.
> -anil
> _______________________________________________
> opam-devel mailing list
> opam-devel at lists.ocaml.org
> http://lists.ocaml.org/listinfo/opam-devel

More information about the opam-devel mailing list