diff --git a/modules/tools/tmux/autoload/tmux.el b/modules/tools/tmux/autoload/tmux.el index 2cab93d2e..fdfaa6c5e 100644 --- a/modules/tools/tmux/autoload/tmux.el +++ b/modules/tools/tmux/autoload/tmux.el @@ -66,16 +66,11 @@ but do not execute them." (apply #'+tmux (car +tmux-last-command) (cdr +tmux-last-command))) ;;;###autoload -(defun +tmux/cd (&optional directory) +(defun +tmux/cd (&optional arg directory) "Change the pwd of the currently active tmux pane to DIRECTORY (defaults to `default-directory', or to `doom-project-root' with the universal argument)." - (interactive - (list - (when current-prefix-arg - (read-directory-name - "cd: " nil - (if current-prefix-arg (doom-project-root) default-directory) t)))) - (+tmux "cd %s" (or directory default-directory))) + (interactive "PD") + (+tmux/run (format "cd %s" (or directory default-directory)) arg)) ;;;###autoload (defun +tmux/cd-to-here ()