Add magit launch script

This commit is contained in:
2026-01-05 17:11:39 +01:00
parent 270cbff548
commit 28d4539e48

8
bin/magit Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
emacs --eval "(progn (magit-status \"$(pwd)\") (delete-other-windows))" &
else
echo "Current directory is not a git repository"
exit 1
fi