diff options
| author | alex <alex@pdp7.net> | 2026-12-05 22:09:29 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-12-05 22:09:29 +0100 |
| commit | 23199f5526db9be1d43a900dc8b8674a7babb966 (patch) | |
| tree | a71fb5363998439c2edfada2940fe9ead8841180 /workstation/user-setup.py | |
| parent | abd668108d9932e39c5de075b9aee116f667987f (diff) | |
WIPworkstation
Somewhat blocked by https://bugzilla.redhat.com/show_bug.cgi?id=2521543
Diffstat (limited to 'workstation/user-setup.py')
| -rwxr-xr-x | workstation/user-setup.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/workstation/user-setup.py b/workstation/user-setup.py new file mode 100755 index 00000000..535aa968 --- /dev/null +++ b/workstation/user-setup.py @@ -0,0 +1,18 @@ +#!/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") |
