Self-destruct command
There should be a command, such as ghcup nuke that will:
- delete
~/.ghcupcompletely including its own binary if it resides there - warn about possible leftovers in bashrc/zshrc/fishconfig files
- print a big fat warning for manual deletion if
ghcupthe binary is in a non-standard location
A challenge here is that, under windows, you can't delete the currently running executable. There are some tricks to work around it, though.
Edited by Julian Ospald