On Fri, Sep 11, 2015 at 3:29 AM, Loris Bennett <loris.benn...@fu-berlin.de> wrote: > Hi, > > I have a bit of a fancy bash prompt and so the output of evaluating a > block of shell script ends up a little messy: > > #+BEGIN_SRC sh :session install :results output > echo blah > #+END_SRC > > #+RESULTS: > : blah > : ]2;loris@soroban [35m[10:21:45] [31mloris@soroban [36m(1058) > [33m/home/loris/tmp[34m[0m > > Is there any way to avoid this short of resetting PS1 within the babel > session?
It looks like `org-babel-sh-strip-weird-long-prompt' removed the prompt from the output. Your prompt doesn't match that regex? Maybe redefine it there.