From: Alex Date: Wed, 5 Jun 2024 15:39:32 +0000 (+0200) Subject: Support Debian X-Git-Tag: 20241020-emacs~160 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=41318c1481016df8cd3c31763d351a0745ee2f07;p=alex.git Support Debian --- diff --git a/scripts/p7s/bash.py b/scripts/p7s/bash.py index 22271de..e703370 100644 --- a/scripts/p7s/bash.py +++ b/scripts/p7s/bash.py @@ -11,8 +11,16 @@ def is_ubuntu_2404(): return platform.freedesktop_os_release().get("VERSION_CODENAME") == "noble" +def is_debian_bookworm(): + return platform.freedesktop_os_release().get("VERSION_CODENAME") == "bookworm" + + +def is_debian_based(): + return is_ubuntu_2204() or is_ubuntu_2404() or is_debian_bookworm() + + def setup_bash(): - if is_ubuntu_2204() or is_ubuntu_2404(): + if is_debian_based(): # clone the handy ~/.bashrc.d from Fedora bash_aliases = pathlib.Path.home() / ".bash_aliases" bash_aliases.write_text(textwrap.dedent("""