realworldocaml / mdx

Execute code blocks inside your documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persisting the current working directory

TheLortex opened this issue · comments

Hi, I'd like to port the MirageOS tutorial (https://mirage.io/wiki/hello-world) to be compatible with mdx, but to my understanding there is no way of persisting a current working directory change across shell invocations or blocks.

The workaround is to do cd ... && <command> but this is less natural and adds a lot of noise in shell blocks.
Would it be possible to persist the current working directory in some way ?