From e3362805b4bd681b119bf90f6c2a42875307aee3 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 6 May 2019 09:12:52 -0400 Subject: [PATCH] Add magit alias/function --- .aliases/command-specific/emacsclient | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.aliases/command-specific/emacsclient b/.aliases/command-specific/emacsclient index efb964c..9929af9 100644 --- a/.aliases/command-specific/emacsclient +++ b/.aliases/command-specific/emacsclient @@ -4,3 +4,7 @@ alias en="e -n" alias et="e -t" alias ec="e -c" alias ecn="ec -n" + +function magit() { + en -e "(progn (cd \"$(realpath ${1-.})\") (magit-status))" +}