[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] run bash sessions without config files
From: |
Adam Porter |
Subject: |
Re: [O] run bash sessions without config files |
Date: |
Thu, 03 Aug 2017 17:09:54 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Tyler Smith <address@hidden> writes:
> On Wed, Aug 2, 2017, at 11:53 AM, Tyler Smith wrote:
>>
>> Is it possible to configure org-babel to ignore any customization files,
>> such as .emacs.d/init_bash.el and .bashrc?
>>
> After some digging around, it looks like this isn't possible.
> ~org-babel~ starts shell sessions via the standard function ~(shell)~.
> Loading ~init_bash.el~ is hard-coded into this function, so there's no
> user-visible way to direct Emacs not to read it for org-mode code
> blocks, while still using it in other contexts.
Could you run the code in the source block within "bash --noprofile
--norc"? You could use "-c" to pass the rest of the commands as a
string, or "-s" to pass to STDIN with a heredoc. I don't know if it
will work, but it might...