scoop-hook

Crates.ioscoop-hook
lib.rsscoop-hook
version0.1.0
created_at2022-05-20 10:12:12.523374+00
updated_at2022-05-20 10:12:12.523374+00
descriptionHook your scoop subcommands in your $env:PATH
homepage
repositoryhttps://github.com/amorphobia/scoop-hook
max_upload_size
id590160
size41,063
Xuesong (amorphobia)

documentation

README

scoop-hook

Hook your scoop sub-commands in your $env:PATH

Inspired by scoop-search

Scoop sub-commands can be extended by scripts named as scoop-<sub-command>.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-<sub-command>.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 bucket and then install with scoop.

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

Invoke-Expression (&scoop-hook --hook)

Then use any sub-commands by scoop <sub-command>.

License

AGPL 3.0 or later.

Commit count: 2

cargo fmt