Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aubreypwd/zsh-plugin-require
A function that helps you require commands, e.g. require <command> <install command>.
https://github.com/aubreypwd/zsh-plugin-require
Last synced: about 2 months ago
JSON representation
A function that helps you require commands, e.g. require <command> <install command>.
- Host: GitHub
- URL: https://github.com/aubreypwd/zsh-plugin-require
- Owner: aubreypwd
- License: mit
- Created: 2020-10-01T13:54:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T16:45:08.000Z (about 1 year ago)
- Last Synced: 2024-01-25T13:03:16.567Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - require - Adds ability to `require commandname` and then (if [brew](https://brew.sh) is installed) automatically `brew install commandname` if it isn't already installed. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - require - Adds ability to `require commandname` and then (if 🌎 [brew](brew.sh) is installed) automatically `brew install commandname` if it isn't already installed. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - require - Adds ability to `require commandname` and then (if 🌎 [brew](brew.sh) is installed) automatically `brew install commandname` if it isn't already installed. (Plugins / ZSH on Windows)
README
# `require`
Simple function you can use to require commands on your system, e.g.:
```bash
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.
```bash
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](https://github.com/zsh-users/antigen):
```bash
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`:
```bash
antigen bundle ssh://[email protected]/aubreypwd/zsh-plugin-require
```...and contribute upstream by working in `$HOME/.antigen/bundles/aubreypwd/zsh-plugin-require`.