]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
Add doc for cleanbuild shell integration
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 22 Feb 2023 19:07:31 +0000 (21:07 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 22 Feb 2023 19:10:08 +0000 (21:10 +0200)
README.md

index 6bfd4bcc4ff6846eb2f0f367ea4fdd150da96391..b9d97e51bc34097afb43911090ac20bea986b4d1 100644 (file)
--- 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
+```
This page took 0.134614 seconds and 4 git commands to generate.