aboutsummaryrefslogtreecommitdiff
path: root/scripts/p7s
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/p7s')
-rw-r--r--scripts/p7s/bash.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/p7s/bash.py b/scripts/p7s/bash.py
index 22271dee..e703370c 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("""