fix deleting entire ~/.local/bin on uninstall
[webi-installers/.git] / webi / README.md
1 ---
2 title: Webi
3 homepage: https://webinstall.dev
4 tagline: |
5   Webi is how developers install their tools.
6 ---
7
8 ## Updating `webi`
9
10 ```bash
11 webi webi
12 ```
13
14 Since `webi` is just a small helper script, it's always update on each use.
15
16 ## Cheat Sheet
17
18 > `webi` is what you would have created if you automated how you install your
19 > common tools yourself: Simple, direct downloads from official sources,
20 > unpacked into `~/.local`, added to `PATH`, symlinked for easy version
21 > switching, with minimal niceties like resuming downloads and 'stable' tags.
22
23 - Easy to remember.
24 - No magic, no nonesense, no bulk.
25 - What you would have done for yourself.
26
27 You can install _exactly_ what you need, from memory, via URL:
28
29 ```bash
30 curl https://webinstall.dev/node@lts | bash
31 ```
32
33 Or via `webi`, the tiny `curl | bash` shortcut command that comes with each
34 install:
35
36 ```bash
37 webi node@lts golang@stable flutter@beta rustlang
38 ```
39
40 ### webi PATHs
41
42 You can see exactly what PATHs have been edited:
43
44 ```bash
45 pathman list
46 ```
47
48 And where:
49
50 ```bash
51 cat ~/.config/envman/PATH.env
52 ```
53
54 ### Uninstall `webi`
55
56 `webi` uses standard paths and touches very little.
57
58 ```bash
59 rm -rf ~/.local/opt/webi ~/.local/bin/webi
60 ```
61
62 If you haven't used `pathman` for anything else, you can also remove its config:
63
64 ```bash
65 rm -f ~/.config/envman/PATH.env
66 ```