https://github.com/amorphobia/scoop-hook
Hook your scoop sub-commands in your $env:PATH
https://github.com/amorphobia/scoop-hook
scoop scoop-command scoop-plugins
Last synced: 11 months ago
JSON representation
Hook your scoop sub-commands in your $env:PATH
- Host: GitHub
- URL: https://github.com/amorphobia/scoop-hook
- Owner: amorphobia
- License: agpl-3.0
- Created: 2022-05-20T10:02:42.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T10:09:11.000Z (about 4 years ago)
- Last Synced: 2025-07-11T09:49:50.019Z (12 months ago)
- Topics: scoop, scoop-command, scoop-plugins
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scoop-hook
Hook your scoop sub-commands in your `$env:PATH`
Inspired by [`scoop-search`](https://github.com/shilangyu/scoop-search)
[Scoop](https://scoop.sh/) sub-commands can be extended by scripts named as `scoop-.ps1`. By default, `scoop.ps1` only searches powershell scripts in `libexec` and `shims` folders.
A hook provided by `scoop-search` can make `scoop search` sub-command to call `scoop-search.exe` binary. However, it will not work if you get some other sub-commands in the future.
This tool can dynamicly find all executables named as `scoop-.exe` in folders listed in the environment variable `$env:PATH`, and execute them as a sub-command of scoop.
Please open an issue or pull request if it does not work for you.
## Installation
Add [siku](https://github.com/amorphobia/siku) bucket and then install with scoop.
```PowerShell
scoop bucket add siku https://github.com/amorphobia/siku
scoop install scoop-hook
```
## Usage
Invoke the hook from PowerShell or add it to your `$PROFILE`
```PowerShell
Invoke-Expression (&scoop-hook --hook)
```
Then use any sub-commands by `scoop `.
## License
[AGPL 3.0](LICENSE) or later.