Improve magit alias/function to always create a new frame

This commit is contained in:
Adam Goldsmith 2020-04-07 12:27:12 -04:00
parent 81f2bfe24d
commit ef6f3433f2
1 changed files with 3 additions and 1 deletions

View File

@ -6,5 +6,7 @@ alias ec="e -c"
alias ecn="ec -n"
function magit() {
en -e "(progn (cd \"$(realpath ${1-.})\") (magit-status))"
ecn -e '(progn (let ((old-frame (selected-frame)))
(magit-status "'"$(realpath ${1-.})"'")
(delete-frame old-frame)))'
}