#+BEGIN_SRC zsh :session z1
echo $HOME $0
#+END_SRC
#+RESULTS:
: /Users/evar /bin/bash
I am thinking of trying the workaround outlined here, but shouldn't this work out of the box?
Update: I couldn't get that workaround to work. I tried:
(require 'ob-shell)
(defadvice org-babel-sh-evaluate (around set-shell activate)
"Add header argument :shcmd that determines the shell to be called."
(let* ((org-babel-sh-command (or (cdr (assoc :shcmd params)) org-babel-sh-command shell-file-name))
(shell-file-name org-babel-sh-command)
)
ad-do-it
))
#+BEGIN_SRC zsh :session z1 :shcmd zsh
echo $HOME $0
#+END_SRC
But it still uses bash.