From b93556981a88df037380065b5112bd576da9d959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Yrj=C3=B6l=C3=A4?= Date: Fri, 10 Jul 2015 16:57:47 +0300 Subject: [PATCH] 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. --- contrib/shell/packages.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/contrib/shell/packages.el b/contrib/shell/packages.el index 3692c0b5c..5b5ece5df 100644 --- a/contrib/shell/packages.el +++ b/contrib/shell/packages.el @@ -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)))