Improve magit alias/function to always create a new frame
This commit is contained in:
parent
81f2bfe24d
commit
ef6f3433f2
@ -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)))'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user