Skip to content

A function that helps you require commands, e.g. require <command> <install command>.

License

Notifications You must be signed in to change notification settings

aubreypwd/zsh-plugin-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

require

Simple function you can use to require commands on your system, e.g.:

require "git" "brew install git"

...will detect git, and if you don't have it installed will automatically run brew install git for you to install it.

require "git" "brew install git" "brew"

Will only run brew install git if the command git is missing and brew is available to install it.

  • Add export REQUIRE_AUTO_INSTALL="off" to ~/.zshrc to turn off auto installation of require.

Install

Using antigen:

antigen bundle aubreypwd/zsh-plugin-require

When you have this installed, any other plugins that use it will automatically be able to manage dependancies automatically.

Development

Install the package on master:

antigen bundle ssh://git@github.com/aubreypwd/zsh-plugin-require

...and contribute upstream by working in $HOME/.antigen/bundles/aubreypwd/zsh-plugin-require.

About

A function that helps you require commands, e.g. require <command> <install command>.

Resources

License

Stars

Watchers

Forks

Languages