commit 9a6e749e7554674a0dd8a1cf794618d4376d2ade Author: Elan Ruusamäe <g...@pld-linux.org> Date: Wed Feb 22 21:07:31 2023 +0200
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 +``` ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/9a6e749e7554674a0dd8a1cf794618d4376d2ade _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit