Seems that on mac the script doesn't write to the /tmp/log-file. Problem may be on line 48 "HISTFILE='${LOG_FILE}' HISTCONTROL=ignorespace PROMPT_COMMAND='history -a' bash --norc; kill '${LOG_PID}'" with the -a flag, which is different for mac. When I remove the flag the history is writing to the file. However the history then appears in the SHELL_PANE not the LOG_PANE.