aboutsummaryrefslogtreecommitdiff
path: root/workstation/user-setup.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2026-12-05 22:09:29 +0100
committeralex <alex@pdp7.net>2026-12-06 13:51:04 +0100
commitcc4c304c3cce228b9a075e9aaf93d93cc0d6ed0b (patch)
treefff1c84aac1158881d142b7f721494914fae33d3 /workstation/user-setup.py
parent6e6fc68fee5783e391d8b921ca44b90aeb67223c (diff)
Somewhat blocked by https://bugzilla.redhat.com/show_bug.cgi?id=2521543
Diffstat (limited to 'workstation/user-setup.py')
-rwxr-xr-xworkstation/user-setup.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/workstation/user-setup.py b/workstation/user-setup.py
new file mode 100755
index 00000000..2b57e29a
--- /dev/null
+++ b/workstation/user-setup.py
@@ -0,0 +1,21 @@
+#!/usr/bin/python3
+import pathlib
+import subprocess
+
+
+def _(*args):
+ subprocess.run(args, check=True)
+
+HOME = pathlib.Path.home()
+BIN = HOME / ".local" / "bin"
+GIT = HOME / "git"
+ALEXPDP7_REPO = GIT / "alexpdp7"
+
+if not ALEXPDP7_REPO.exists():
+ _("git", "clone", "https://github.com/alexpdp7/alexpdp7.git", ALEXPDP7_REPO)
+
+_("pipx", "install", "-e", ALEXPDP7_REPO / "scripts", "--force")
+_(BIN / "setup-ubpkg")
+# Latest Bitwarden CLI not compatible with EPEL Vaultwarden https://github.com/dani-garcia/vaultwarden/issues/7820
+_(BIN / "install-bitwarden-cli", "2026.8.0")
+_(BIN / "setup-ssh")