Giter Site home page Giter Site logo

frankieron5 / command-not-found Goto Github PK

View Code? Open in Web Editor NEW

This project forked from termux/command-not-found

0.0 0.0 0.0 273 KB

Utility for suggesting packages in case typed command was not found.

License: Apache License 2.0

JavaScript 26.69% C++ 68.96% CMake 4.35%

command-not-found's Introduction

Command-not-found for termux

This repo contains sources for the command-not-found utility used in termux. Apart from the sources for the binary (command-not-found.cpp), it also contains a script to generate lists of commands for the various official repositories:

Building command-not-found

To build the package, cmake and a c++ compiler (for example g++ or clang++) needs to be installed. Apart from cmake and a C++ compiler, nodejs is also needed in order to generate list of commands. To do an out of source build, run these commands from the command-not-found directory:

mkdir build && cd build
cmake ..
make

This will generate command lists by running ./generate-db.js, and create a command-not-found binary which can be tested directly. To then install the program, run:

make install

This installs command-not-found to CMAKE_INSTALL_PREFIX/libexec/termux, which is where command-not-found resides in termux.

Updating the command lists

In order to update the command lists, just a rebuild of command-not-found is to be done by bumping the TERMUX_PKG_REVISION in build recipe of command-not-found.

command-not-found's People

Contributors

grimler91 avatar thunder-coding avatar xtkoba avatar jidhub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.