From 9a6e749e7554674a0dd8a1cf794618d4376d2ade Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 22 Feb 2023 21:07:31 +0200 Subject: [PATCH] Add doc for cleanbuild shell integration --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6bfd4bc..b9d97e5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,14 @@ Run cleanbuild: ./cleanbuild FHS -You can create yourself alias for easier invocation from regular user: +You can create yourself alias for easier invocation from regular user. +Add this to your `~/.bashrc`: - alias cleanbuild='_cleanbuild() { sudo -H -u builder sh -c "cd ~/cleanbuild && ./cleanbuild $*"; }; _cleanbuild' - cleanbuild somepkg +```bash +eval "$(/path-to-cleanbuild-checkout/cleanbuild --shellcode=bash)" +``` + +And then: +```bash +cleanbuild somepkg +``` -- 2.44.0