refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / webi / README.md
index 0cde5be68df80ce81bc8fb25dfa3ea0fc8a8e207..da5585bec33bab796945070c9fe69d61c8301843 100644 (file)
@@ -17,7 +17,7 @@ Since `webi` is just a small helper script, it's always update on each use.
 
 > `webi` is what you would have created if you automated how you install your
 > common tools yourself: Simple, direct downloads from official sources,
-> unpacked into `$HOME/.local`, added to `PATH`, symlinked for easy version
+> unpacked into `~/.local`, added to `PATH`, symlinked for easy version
 > switching, with minimal niceties like resuming downloads and 'stable' tags.
 
 - Easy to remember.
@@ -34,25 +34,75 @@ Or via `webi`, the tiny `curl | bash` shortcut command that comes with each
 install:
 
 ```bash
-webi node@latest
+webi node@lts golang@stable flutter@beta rustlang
 ```
 
+### webi PATHs
+
+You can see exactly what PATHs have been edited:
+
 ```bash
-webi golang@v1.14
+pathman list
 ```
 
+And where:
+
 ```bash
-webi rustlang
+cat ~/.config/envman/PATH.env
 ```
 
-You can see exactly what PATHs have been edited:
+### How to uninstall Webi
+
+These are the files that are installed when you use [webinstall.dev](/):
 
 ```bash
-pathman list
+# Mac, Linux
+~/.local/bin/webi
+~/.local/bin/pathman
+~/.local/opt/pathman-*
+
+# Windows 10
+~/.local/bin/webi.cmd
+~/.local/bin/webi-pwsh.ps1
+~/.local/bin/pathman.exe
+~/.local/opt/pathman-*
 ```
 
-And where:
+Assuming that you don't use `pathman` for anything else, you can safely remove
+all of them. If you use [webinstall.dev](/) again in the future they will be
+reinstalled.
+
+Additionally, these files may be modified to update your `PATH`:
 
 ```bash
-cat $HOME/.config/envman/PATH.env
+~/.bashrc
+~/.profile
+~/.config/fish/config.fish
+~/.config/envman/PATH.env
+```
+
+It's probably best to leave them alone.
+
+### How to uninstall Webi-installed programs
+
+Except where noted otherwise (such as `wsl`) Webi installs everything into
+`~/.local/bin` and `~/.local/opt`.
+
+Some programs also use `~/.local/share` or `~/.config` - such as `postgres` and
+`fish` - and some use program-specific directories - such as Go, which uses
+`~/go/bin`.
+
+If you want to remove any of them, simply deleting them should do well enough -
+just check the Cheat Sheet for any special notes.
+
+Here are some examples:
+
+```bash
+# Remove jq
+rm -rf ~/.local/bin/jq
+rm -rf ~/.local/jq-*/
+
+# Remove node.js
+rm -rf ~/.local/opt/node/
+rm -rf ~/.local/opt/node-*/
 ```