Skip to content

Set working directory with :dir #12

@aseltmann

Description

@aseltmann

I just noticed another possible improvement. Using the header :dir in a source block usually allows to set the working directory, e.g.:

#+BEGIN_SRC sh :dir ~/my/path :session local
  pwd
#+END_SRC

#+RESULTS:
|                               |
| /home/user/my/path |

Doing this in ob-tmux on the other hand does not seem to work:

#+BEGIN_SRC tmux :dir ~/my/path :session local2
  pwd
#+END_SRC

#+RESULTS:
#+begin_example
  (base) [user@host ~]$ pwd
  /home/user
#+end_example

I think that would be a good functionality, especially since remote tmux sessions using :socket is possible. Would implementing this be feasible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions