By default my source code block can't find most executables:
#+BEGIN_SRC bash which aws #+END_SRC #+RESULTS:
This fixes the problem:
#+BEGIN_SRC bash source $HOME/.bash_profile which aws #+END_SRC #+RESULTS: | ]; | PHP | 7.1.25 | | | /Users/bwood/Library/Python/3.7/bin/aws | | | |
My question: Is there a way to make code blocks of language type bash (or shell) always source my .bash_profile, without having to add that line at the beginning of every source block?
Base on https://orgmode.org/manual/prologue.html I tried adding the following to my init file, but this didn't fix the problem so maybe I'm not understanding what prologue does:
(add-to-list 'org-babel-default-header-args:shell '((:prologue . "source /Users/bwood/.bash_profile")))
EDIT: I should have mentioned that I'm running graphical UI Emacs under MacOS.