This tool helps to correct spelling mistakes made when calling commands, examples are here.
When confined thefuck is not able to give correct suggestions and available interfaces don’t satisfy it’s needs.
Apparmor denies and source code suggest it needs:
.{bash,fish,zsh}_history - home interface gives access to non-hidden files only
read access to every directory in PATH - probably it needs to run commands as well, couldn’t find interface for it
/proc/x/mounts - guess it would be mount-observe
ptrace - probably not really required
Additionally it needs helper command fuck, which is called most of the time. How could it be resolved without telling the user to create alias?
I don’t have admin access to the official repository and don’t feel like it’s plausible so I cannot select it in https://snapcraft.io/build. Original author agreed to put snapcraft.yaml in official repo so I can open PR in no time.