Skip to content

Commit bd655b0

Browse files
committed
dev aware pkgs clarification
1 parent db2b47b commit bd655b0

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ dev, across your team and in production.
1212
1313
## Getting Started
1414

15-
Since `dev` v1.8.0 we integrate with `pkgm` (^0.11) and this is the
16-
recommended way to use `dev`.
15+
Since `dev` v1.8.0 we integrate with `pkgm` (^0.11) and this is the recommended
16+
way to use `dev`.
1717

1818
> [!IMPORTANT]
1919
>
20-
> `dev` must be installed to `/usr/local/bin/dev` for this route to work:
20+
> Both `dev` and the packages you want to be `dev`-aware must be installed to
21+
> `/usr/local/` for this to work. (`dev` (but only `dev`) can be a `pkgm shim`).
2122
>
2223
> ```sh
23-
> sudo pkgm install dev # use of `shim` is also fine
24+
> sudo pkgm install dev node@22
2425
> ```
2526
2627
```sh
@@ -68,7 +69,14 @@ just the terminal.
6869

6970
## `dev` via Shellcode
7071

71-
Shellcode works _as well_ and is your preference. It has notable caveats with
72+
Using `dev` via shellcode requires hooks to be installed in your shell. It
73+
is handy in that no tool needs to be installed. It is problematic in that
74+
shell hooks are more invasive and don’t work in other tools like editors.
75+
76+
<details>
77+
<summary>Using <code>dev</code> via shellcode…</summary>
78+
79+
It has notable caveats with
7280
regard to use in tools like editors. It also requires you to add shellcode to
7381
your `shell.rc` files and thus is more intrusive (depending on your outlook).
7482

@@ -148,6 +156,8 @@ command not found: node
148156
>
149157
> The devenv will only exist for the duration of your shell session.
150158
159+
</details>
160+
151161
## How Packages are Determined
152162
153163
- We look at the files you have and figure out the packages you need.

0 commit comments

Comments
 (0)