Tyler Smith <ty...@plantarum.ca> 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...