(no title)
ktm5j | 13 days ago
Fedora and Debian will both dive straight into searching apt/dnf for a matching package and ask "do you want to install this?"
I imagine you could create a hook that gets run for any command failure, but again I'm on my phone so not sure.
VorpalWay|13 days ago
I wrote my own (much faster) such handler for Arch Linux. I even wrote a blog post about the design: https://vorpal.se/posts/2025/mar/25/filkoll-the-fastest-comm...
zahlman|13 days ago
dataflow|13 days ago
ktm5j|13 days ago
In /etc/bash.bashrc:
# if the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then ... fi
aflag|13 days ago
ktm5j|13 days ago
bandrami|13 days ago