We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5299d5b commit e0f6f40Copy full SHA for e0f6f40
docs/scripting.md
@@ -111,5 +111,19 @@ show it off.
111
112
We make use of `pkgx` scripting all over our repositories. Check them out!
113
114
+## Ultra Portable Scripts
115
+
116
+Requiring a `pkgx` shebang is somewhat limiting. Instead you can use our `cURL`
117
+one-liner coupled with `+pkg` syntax to temporarily install pkgs and utilize
118
+them in your scripts:
119
120
+```sh
121
+#!/bin/bash
122
123
+eval "$(sh <(curl https://pkgx.sh) +git)"
124
125
+which git # prints soemthing like /tmp/pkgx/git-scm.org/v2.46.3/bin/git
126
+```
127
128
[shebang]: https://en.wikipedia.org/wiki/Shebang_(Unix)
129
[Scriptisto]: https://github.com/igor-petruk/scriptisto
0 commit comments