Skip to content

rami-shalhoub/Smart-command-not-found

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart command not found

Why

I wrote this plug in out of frustration from how the command-not-found  plugin provided by OMZ only displays Homebrew available packages

What does it do

I wanted a plugin that shows me all the available options when a command is not found, so I included many package manager to check from so the plugin can work on multiple systems

Note

If you didn't find the packager manager you are looking for please inform me or add it yourself and submit a pull request

How to get it

  1. make sure Oh My Zh and fzf are installed

  2. clone the repository

    git clone https://github.com/rami-shalhoub/Smart-command-not-found.git ~/.oh-my-zsh/custom/plugins/
  3. add “smart-command-not-found” to the plugins array in ~/.zshrc

    plugins=(... smart-command-not-found ...)
    
  4. (Optional) specify the managers that you want the plugin to use, in ~/.zshrc add

    export MANAGERS=('apt' 'flatpak' 'homebrew')
    

Supported Package Managers

  • apt ( and nala if exist)
  • dnf
  • pacman
  • aur:
    • yay*
    • paru*
    • aura*
  • zypper*
  • homebrew
  • flatpak
  • snap*
  • nix*

Caution

The aur managers yay paru aura have an issue
Please do not use them as they will not display any results

Important

The managers marked with * are not (well) tested yet
you can help improving the plugin by providing feedback if you are able to test them

How it looks

 

 

About

A smarter command-not-found plugin for Oh My Zsh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages