home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f09690a07d7d9d3ceccc6f07b567adf2364ce2ce
parent 4cd0c8fd260ea2c3cdec9963470a1c091768f1fd
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon,  7 Sep 2020 11:34:55 +0100

tools/emacs: add eshell cdg alias

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-shells.el | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-shells.el b/tools/emacs/config/config-shells.el @@ -39,6 +39,10 @@ The EShell is renamed to match that directory to make multiple windows easier." (magit-status (pop args) nil) (eshell/echo)) ; The echo command suppresses output + (defun eshell/cdg () + "Change directory to the project's root." + (eshell/cd (locate-dominating-file default-directory ".git"))) + (defun eshell/extract (file) "One universal command to extract FILE (for bz2, gz, rar, etc.)" (eshell-command-result (format "%s %s" (cond ((string-match-p ".*\.tar.bz2" file)