shell-layer: fix magit-status alias
Now (i guess after the 2.1 release) magit-status can be executed directly in eshell. If magit-status is called with the path as parameter the path must be the git repo root. If not from the git repo root magit will ask if a new repo should be created.
This commit is contained in:
parent
04fa448e8b
commit
b93556981a
|
@ -266,10 +266,4 @@ the user activate the completion manually."
|
|||
(defun shell/pre-init-magit ()
|
||||
(spacemacs|use-package-add-hook magit
|
||||
:post-init
|
||||
(progn
|
||||
;; add a quick alias to open magit-status in current directory
|
||||
(defun spacemacs/eshell-magit-status ()
|
||||
"Function to open magit-status for the current directory"
|
||||
(interactive)
|
||||
(magit-status default-directory))
|
||||
(defalias 's 'spacemacs/eshell-magit-status))))
|
||||
(defalias 's 'magit-status)))
|
||||
|
|
Loading…
Reference in a new issue