4 ms·
You can type a command and if the application is missing it will install it on the fly and the command will just work. I wish Linux distros had this feature as
by xyproto 3y ago
You can type a command and if the application is missing it will install it on the fly and the command will just work.
I wish Linux distros had this feature as well.
- rwmj 3y agoThey do. I disable it always because it is annoying if you typo a command.
- bee_rider 3y agoI imagine sl would be even more annoying if you had to download it.
- xyproto 3y agoIf the download and installation is fast enough, it feels smooth, and not annoying. If a distro were to appear with this feature enabled by default, I hope they would have the foresight to not include "sl", or at least put it in the default blacklist.
- Fnoord 3y agoSomething like command-not-found is as good as it gets. Because you don't want to run an arbitrary program based on user input. You want to be able to know beforehand which program is going to run. Which you specifically cannot be sure of when you make a typo (and you don't know beforehand that you make a typo). Its why rm evokes -i by default and requires -f to avoid interaction on some OSes. Users can and will make a mistake with it, especially new users. And everyone makes typos.
- tough 3y agoI am using tea (brew's creator multi-platform successor) and you can set it up so if a command is missing it will install it. As you say, it's a bit scary that any typo can install random commands lol I already installed several 1 character langauges by mistake $ v == https://vlang.io/ https://vlang.io/
- robertlagrant 3y agoThe final form of typosquatting attack vectors.