Files
scripts/bin/magit
2026-01-05 17:11:39 +01:00

9 lines
225 B
Bash
Executable File

#!/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