diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-07-13 15:39:02 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-07-13 15:57:36 +0200 |
commit | 78b21fe7289130dd400b3ed30c37cff6639909e5 (patch) | |
tree | e5495327dacd47d18f1b0e2f2c433697e18be84e /post-checkout | |
download | test-sub-78b21fe7289130dd400b3ed30c37cff6639909e5.tar.gz |
Diffstat (limited to 'post-checkout')
-rwxr-xr-x | post-checkout | 18 |
1 files changed, 18 insertions, 0 deletions
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 + |