Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit a359f69

Browse files
committed
More eshell cd variants.
1 parent 016b8df commit a359f69

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

modules/starter-kit-eshell.el

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@
6868
"Change directory to the project's root."
6969
(eshell/cd (locate-dominating-file default-directory "src")))
7070

71+
;;;###autoload
72+
(defun eshell/cds ()
73+
"Change directory to the project's root."
74+
(eshell/cd (locate-dominating-file default-directory "src")))
75+
76+
;;;###autoload
77+
(defun eshell/cdl ()
78+
"Change directory to the project's root."
79+
(eshell/cd (locate-dominating-file default-directory "lib")))
80+
81+
;;;###autoload
82+
(defun eshell/cdg ()
83+
"Change directory to the project's root."
84+
(eshell/cd (locate-dominating-file default-directory ".git")))
85+
7186
;; these two haven't made it upstream yet
7287
;;;###autoload
7388
(when (not (functionp 'eshell/find))
@@ -84,6 +99,7 @@
8499
"Use Emacs grep facility instead of calling external grep."
85100
(eshell-grep "rgrep" args t)))
86101

102+
;;;###autoload
87103
(defun eshell/extract (file)
88104
(let ((command (some (lambda (x)
89105
(if (string-match-p (car x) file)

0 commit comments

Comments
 (0)