mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/tmux: fix +tmux/cd
This commit is contained in:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user