register for core

Register a plugin.

Signature

> register {flags} (plugin) (signature)

Flags

  • --shell, -s {path}: path of shell used to run plugin (cmd, sh, python, etc)

Parameters

  • plugin: path of executable for plugin
  • signature: Block with signature description as json object

Input/output types:

input output
nothing nothing

Examples

Register rsh_plugin_query plugin from ~/.cargo/bin/ dir

> register ~/.cargo/bin/rsh_plugin_query

Register rsh_plugin_query plugin from rsh -c (writes/updates $rsh.plugin-path)

> let plugin = ((which rsh).path.0 | path dirname | path join 'rsh_plugin_query'); rsh -c $'register ($plugin); version'

Notes

This command is a parser keyword. For details, check: https://irsh.vercel.app/book/thinking_in_rsh.html