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))" +}