Skip to content

unixorn/zsh-macos-command-not-found

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ZSH fast command-not-found plugin for macOS

The purpose of this plugin is to provide a faster alternative to oh-my-zsh / prezto one, which runs multiple useless checks, and runs brew command within zshrc.

The problem is brew commands are really slow (0.5~2s) and cause huge zsh slowdown load time.

This plugin check for brew command-not-found dynamically, when a wrong command has been typed. This cause a latency each time a a not found command is typed. However, given the great auto-correction and syntax highlighting features of zsh, this is something that rarely happens, and which is less disturbing because we can stop it with easily.

Installation

You can use this plugin using zplug :

zplug "Tireg/zsh-macos-command-not-found", if:"[[ "${OSTYPE}" == 'darwin'* ]]";

Requirements

This plugin is only meant to be sourced on macOS. Be sure to check your OS before sourcing it (like in Installation step with zplug)

You should install brew, and tap homebrew/command-not-found to make this plugin useful.

About

MacOS zsh plugin that integrates brew command-not-found

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%