ob-tmux
ob-tmux copied to clipboard
Set working directory with :dir
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?
I just fixed this in PR#19.