Skip to content

nvterm/command-not-found

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

NovaTerm command-not-found

License Status

Smart package suggestions when unknown commands are typed in NovaTerm terminal.

Status

Basic — A bash hook is already integrated in NovaTerm's default shell configuration.

Current Implementation

NovaTerm ships with a command_not_found_handler() function in .bashrc that uses apt-cache search to suggest installable packages when an unknown command is entered:

$ ffmpeg
ffmpeg: command not found
Did you mean to install 'ffmpeg'?
  pkg install ffmpeg

Planned Improvements

  • C++ binary — Prebuilt lookup table for instant results (like Termux's implementation)
  • Fuzzy matching — Suggest similar commands for typos (gti -> git)
  • Alias awareness — Check user aliases before suggesting packages
  • Multiple sources — Search across apt, pip, npm, and cargo packages
  • AI suggestions — Optional AI-powered command alternatives via NovaTerm's LLM

Architecture

bash: command_not_found_handler()
        |
  command-not-found binary (planned)
        |
  Package database (prebuilt index)

License

Apache License 2.0

About

Smart package suggestions when unknown commands are typed

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors