Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/selfagency/bru
Nushell wrapper for Homebrew
https://github.com/selfagency/bru
homebrew nushell nushell-plugin nushell-script
Last synced: 29 days ago
JSON representation
Nushell wrapper for Homebrew
- Host: GitHub
- URL: https://github.com/selfagency/bru
- Owner: selfagency
- License: mit
- Created: 2023-09-16T16:52:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-16T15:48:16.000Z (8 months ago)
- Last Synced: 2024-08-02T10:27:32.559Z (3 months ago)
- Topics: homebrew, nushell, nushell-plugin, nushell-script
- Language: Nushell
- Homepage:
- Size: 18.6 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-nu - bru
README
bru: A Nushell wrapper for Homebrew
### 🏠 [Homepage](https://github.com/selfagency/bru)
## Install
```sh
cd $nu.default-config-path
git clone [email protected]:selfagency/bru.git
vi config.nu
```Insert the line:
```sh
use ./bru/bru
```## Usage
```sh
bru [subcommand] [parameters] [options]
```## Subcommands
### `config`
Show Homebrew and system configuration info useful for debugging.
**Usage**
`bru config [key]`
**Parameters**
- `key`: The key to show. If not specified, all keys will be shown.
### `deps`
Show dependencies for formula/e. When given multiple formulae, show the intersection of dependencies for each formula. If no formula/e is given, show dependencies for all installed formulae.
**Usage**
`bru deps [formula]`
**Parameters**
- `formula`: Formula/e to show dependencies for
### `deps missing`
Check the given formula/e for missing dependencies. If no formulae are provided, check all kegs.
**Usage**
`bru deps missing [formula]`
**Parameters**
- `formula`: Formula/e to check for missing dependencies
### `deps tree`
Show dependencies for formula/e. When given multiple formulae, show the intersection of dependencies for each formula. If no formula/e is given, show dependencies for all installed formulae.
**Usage**
`bru deps tree [formula]`
**Parameters**
- `formula`: Formula/e to show dependencies for
### `doctor`
Check your system for potential problems.
**Usage**
`bru doctor`
### `info`
Display brief statistics for your Homebrew installation. If a formula or cask is provided, show summary of information about it.
**Usage**
`bru info [formula|cask] [--extended|-e] [--cask|-c]`
**Options**
- `--extended`, `-e`: Display extended info
- `--cask`, `-c`: Display info for cask instead of formula### `info desc`
Display a formula or cask's name and one-line description.
**Usage**
`bru info desc [formula|cask] [--cask|-c]`
**Options**
- `--cask`, `-c`: Display info for cask instead of formula
### `leaves`
List installed formulae that are not dependencies of another installed formula or cask.
**Usage**
`bru leaves`
### `list`
List all installed formulae and casks.
**Usage**
`brew list [--extended|-e]`
**Options**
- `--extended`, `-e`: Show extended information.
#### `outdated`
List installed casks and formulae that have an updated version available.
**Usage**
`bru outdated`
### `search`
Perform a substring search of cask tokens and formula names for text. If text is flanked by slashes, it is interpreted as a regular expression.
**Usage**
`bru search [terms] [--desc] [--formulae|-f] [--casks|-c]`
**Parameters**
- `terms`: Search terms
**Options**
- `--desc`, `-d`: Search descriptions as well as titles
- `--formulae`, `-f`: Search formulae
- `--casks`, `-c`: Search casks### `services`
List information about all managed services for the current user (or root).
**Usage**
`bru services`
### `shellenv`
Print export statements.
**Usage**
`bru shellenv`
## `Command not found` hook
```sh
if (not ($env | default false __bru_hooked | get __bru_hooked)) {
$env.__bru_hooked = true
$env.config = ($env.config
| upsert hooks.command_not_found (
($env.config.hooks.command_not_found | default [])
| append {|cmd| bru not-found $cmd}
)
)
}
```## Author
👤 **Daniel Sieradski**
- Website:
- GitHub: [@selfagency](https://github.com/selfagency)
- LinkedIn: [@selfagency](https://linkedin.com/in/selfagency)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/selfagency/bru/issues).## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2023 [Daniel Sieradski](https://github.com/selfagency).
This project is [MIT](https://opensource.org/license/mit/) licensed.***
*This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)*