tools/tmux: fix +tmux/cd
This commit is contained in:
parent
a107dcd7a9
commit
aa9ee68248
1 changed files with 3 additions and 8 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue