[opam-devel] Which shell files are updated
Anil Madhavapeddy
anil at recoil.org
Tue Aug 6 15:56:28 BST 2013
I'm proxying the helpful chap over at:
https://github.com/ocamllabs/rwo-comments/issues/2129#issuecomment-22184157
He points out:
> I agree regarding inclusion in ~/.bash_profile as well, but in this case, OPAM won't work in interactive shells on Fedora unless included in ~/.bashrc. The typical suggested solution for this is to source ~/.bashrc from ~/.bash_profile and make all changes to ~/.bashrc, but if you want to leave those levels of system administration details to the reader, that seems fine.
-anil
On 5 Aug 2013, at 18:01, Thomas Gazagnaire <thomas at ocamlpro.com> wrote:
> 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