|
7 | 7 | > [!INFO] |
8 | 8 | > You just want your shit to work and we want that too. We pride ourselves |
9 | 9 | > on packaging things as well as possible because we want you to change the |
10 | | -> world with what you build upon the *best* base we can give you. |
| 10 | +> world with what you build upon the _best_ base we can give you. |
11 | 11 |
|
12 | 12 | |
13 | 13 |
|
@@ -68,7 +68,8 @@ Python 2.7.18 |
68 | 68 | > [!TIP] |
69 | 69 | > |
70 | 70 | > We have gone to good lengths to make `pkgx` (and the packages it installs) |
71 | | -> work with almost nothing else installed, making it ideal for tiny containers. |
| 71 | +> work with almost nothing else installed, making it ideal for tiny |
| 72 | +> containers. |
72 | 73 |
|
73 | 74 | </details> |
74 | 75 | <details><summary>Windows</summary><br> |
@@ -141,8 +142,9 @@ pkgx shellcheck |
141 | 142 | </details> |
142 | 143 | <details><summary>Editors</summary><br> |
143 | 144 |
|
144 | | -Use [`dev`][dev]; a separate tool that uses the pkgx primitives to automatically |
145 | | -determine and utilize your dependencies based on your project’s keyfiles. |
| 145 | +Use [`dev`][dev]; a separate tool that uses the pkgx primitives to |
| 146 | +automatically determine and utilize your dependencies based on your project’s |
| 147 | +keyfiles. |
146 | 148 |
|
147 | 149 | ```sh |
148 | 150 | $ cd myproj |
@@ -271,23 +273,6 @@ pkgx uvx cowsay "Run Python (PyPi) programs with `uvx`" # or pipx |
271 | 273 | pkgx bunx cowsay "Run JavaScript (NPM) programs tools with `bunx`" # or `npx` |
272 | 274 | ``` |
273 | 275 |
|
274 | | -## Magic |
275 | | -
|
276 | | -It can be fun to add magic to your shell: |
277 | | -
|
278 | | -```sh |
279 | | -# add to ~/.zshrc |
280 | | -command_not_found_handler() { |
281 | | - pkgx -- "$@" |
282 | | -} |
283 | | -``` |
284 | | -
|
285 | | -Thus if you type `gh` and it’s not installed pkgx will magically run it as |
286 | | -though it was installed all along. |
287 | | -
|
288 | | -> [!NOTE] |
289 | | -> Bash is the same function but drop the `r` from the end of the name. |
290 | | -
|
291 | 276 | |
292 | 277 |
|
293 | 278 | # Further Reading |
@@ -324,16 +309,17 @@ exported. |
324 | 309 |
|
325 | 310 | ## `pkgx install` |
326 | 311 |
|
327 | | -We now provide [`pkgm`][pkgm] but if you miss the leanness of “stubs” we provide |
328 | | -a [`mash`] script to create stubs in `/usr/local/bin`: |
| 312 | +We now provide [`pkgm`][pkgm] which fully installs `pkgx` packages to |
| 313 | +`/usr/local/`. |
| 314 | +
|
| 315 | +If you miss the leanness of pkgx^1 “shims then use `pkgm shim`. |
329 | 316 |
|
330 | 317 | ```sh |
331 | | -$ pkgx mash pkgx/stub git |
332 | | -created stub: /usr/local/bin/git |
| 318 | +$ pkgm shim git |
| 319 | +created shim: ~/.local/bin/git |
333 | 320 |
|
334 | | -$ cat /usr/local/bin/git |
335 | | -#!/bin/sh |
336 | | -exec pkgx git "$@" |
| 321 | +$ cat ~/.local/bin/git |
| 322 | +#!/usr/bin/env -S pkgx -q! git |
337 | 323 | ``` |
338 | 324 |
|
339 | 325 | |
|
0 commit comments