Self-destruct command
There should be a command, such as ghcup nuke
that will:
- delete
~/.ghcup
completely 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
ghcup
the 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