Add eshell/mkdir-and-cd command
I'd recommend aliasing this to mkdircd or take.
This commit is contained in:
parent
633b5b764d
commit
29ae7f935f
1 changed files with 6 additions and 0 deletions
|
@ -12,3 +12,9 @@
|
|||
"Quit the current eshell buffer and close the window it's in."
|
||||
(setq-local +eshell-kill-window-on-exit t)
|
||||
(throw 'eshell-terminal t))
|
||||
|
||||
;;;###autoload
|
||||
(defun eshell/mkdir-and-cd (dir)
|
||||
"Create a directory then cd into it."
|
||||
(make-directory dir t)
|
||||
(eshell/cd dir))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue