summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2023-02-22 19:07:31 (GMT)
committerElan Ruusamäe2023-02-22 19:10:08 (GMT)
commit9a6e749e7554674a0dd8a1cf794618d4376d2ade (patch)
tree27969fc134418d3c7207308613a804c31d74e8d0
parente39bba153313883649838acbaa3b1b4ad68d64e9 (diff)
downloadcleanbuild-9a6e749e7554674a0dd8a1cf794618d4376d2ade.zip
cleanbuild-9a6e749e7554674a0dd8a1cf794618d4376d2ade.tar.gz
Add doc for cleanbuild shell integration
-rw-r--r--README.md13
1 files 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
+```