diff --git a/bin/magit b/bin/magit new file mode 100755 index 0000000..7263a96 --- /dev/null +++ b/bin/magit @@ -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