From 28d4539e488a5aff776d939a084a206d6209835c Mon Sep 17 00:00:00 2001 From: luxick Date: Mon, 5 Jan 2026 17:11:39 +0100 Subject: [PATCH] Add magit launch script --- bin/magit | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/magit 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