\
\
"install a missing command using suggestions"
prefix 2>&1 | tail -n1 | sh
Suggestion in terminal about of a missing command are genereted by command-not-found and command-not-found-data. The output in ubuntu is this:
$ apt-get install MISSING
The program 'MISSING' is currently not installed. You can install it by typing:
sudo apt-get install MISSING
[me@blog]$
_