Hi, setting the prompt to the current working directory should already be possible in bpython (or even plain Python) with a custom displayhook (see https://docs.python.org/3/library/sys.html#sys.displayhook). The displayhook can be set for example in a PYTHONSTARTUP script (see https://docs.python.org/3/using/cmdline.html#envvar-PYTHONSTARTUP).
I outlined the idea in a gist: https://gist.github.com/Trundle/683a399e496f28be89d1af914c349382 Cheers! Andreas On Wed, Sep 21, 2016 at 2:54 PM, Sebastian Ramacher <[email protected]> wrote: > On Thursday, July 21, 2016 at 11:44:40 PM UTC+2, Sebastián Monía wrote: >> >> Hi, >> >> I was wondering if there's a way to do this. I can get a hold of sys.ps1 >> from the terminal... >> > > I think you'd need to write some code for that to be possible. > > Cheers > > -- > You received this message because you are subscribed to the Google Groups > "bpython" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/bpython. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "bpython" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/bpython. For more options, visit https://groups.google.com/d/optout.
