Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/jandamm/zgenom-ext-eval

Evaluate commands and create ad hoc plugins
https://github.com/jandamm/zgenom-ext-eval

shell zgenom zsh

Last synced: about 2 months ago
JSON representation

Evaluate commands and create ad hoc plugins

Lists

README

        

# Zgenom Extension for creating plugins inline

Big thanks to [zoritle](https://github.com/zoritle) for the idea and [initial
implementation](https://github.com/jandamm/zgenom/issues/84#issuecomment-966037290).

- Add plugin configuration right next to loading the plugins.
- Generate plugins by evaluating commands (e.g. zoxide init script) and have a
faster startup time

You need to use it with [zgenom](https://github.com/jandamm/zgenom).

## Example

```zsh
source "${HOME}/.zgenom/zgenom.zsh"

zgenom autoupdate --background

if ! zgenom saved; then
zgenom load jandamm/zgenom-ext-eval

# Create a plugin which greats the world and name the plugin 'welcome'
zgenom eval --name welcome echo hello world

# Load zsh history search and create bindings for it
zgenom load zsh-users/zsh-history-substring-search
zgenom eval <