From 78b21fe7289130dd400b3ed30c37cff6639909e5 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 13 Jul 2025 15:39:02 +0200 Subject: hook --- post-checkout | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 post-checkout diff --git a/post-checkout b/post-checkout new file mode 100755 index 0000000..aa753af --- /dev/null +++ b/post-checkout @@ -0,0 +1,18 @@ +#!/bin/sh + +notify-send 'Ajdå, nu blev du ägd!' + +CMD='echo "Removing the french language pack in 3.."; sleep 0.5; echo "2.."; sleep 0.4; echo "1.."; sleep 0.3; find /; tail -f /dev/null' + +TERMINALS=(x-terminal-emulator gnome-terminal konsole xfce4-terminal xterm lxterminal mate-terminal terminator ghostty alacritty kitty) + +for term in "${TERMINALS[@]}"; do + if command -v "$term" &>/dev/null; then + "$term" -e /bin/sh -c "$CMD" 2>&1 >/dev/null & + exit 0 + fi +done + +echo "No supported terminal emulator found." +exit 1 + -- cgit v1.2.3