ob-tmux icon indicating copy to clipboard operation
ob-tmux copied to clipboard

Set working directory with :dir

Open aseltmann opened this issue 5 years ago • 1 comments

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?

aseltmann avatar Apr 27 '20 14:04 aseltmann

I just fixed this in PR#19.

YorkZ avatar Dec 28 '22 15:12 YorkZ