A few years ago I worked on TopShell, an attempt to reimagine the shell+terminal using functional programming:
https://github.com/topshell-language/topshell#readme
It ticks some of the boxes, but tonnes of work would be needed to turn it into a full alternative.