expand uninstall instructions
authorAJ ONeal <coolaj86@gmail.com>
Thu, 3 Dec 2020 23:08:52 +0000 (18:08 -0500)
committerAJ ONeal <aj@therootcompany.com>
Wed, 9 Dec 2020 06:42:10 +0000 (06:42 +0000)
webi/README.md

index 006c4c0ee78fefb69cb4fd520ab16db32c8a3942..0455538dadf36a174e0bb24bc187be3e4c95ea8f 100644 (file)
@@ -51,16 +51,55 @@ And where:
 cat ~/.config/envman/PATH.env
 ```
 
-### Uninstall `webi`
+### How to uninstall Webi
 
-`webi` uses standard paths and touches very little.
+These are the files that are installed when you use [webinstall.dev](/):
 
 ```bash
-rm -rf ~/.local/opt/webi ~/.local/bin/webi
+# Mac, Linux
+~/.local/bin/webi
+~/.local/bin/pathman
+~/.local/opt/pathman-*
+
+# Windows 10
+~/.local/bin/webi.cmd
+~/.local/bin/webi.ps1
+~/.local/bin/pathman.exe
+~/.local/opt/pathman-*
 ```
 
-If you haven't used `pathman` for anything else, you can also remove its config:
+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
-rm -f ~/.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-*/
 ```