Skip to content

Share variables between shell and ruby #26

@n-at-han-k

Description

@n-at-han-k

I left a comment here on a previous discussion #14 (comment).

For total integration between shell and ruby, variables from the top level scope must be shared.

I'm not sure how difficult this is, but probably some "shell-level" integration will be required, for example a zsh-plugin.

Potentially, I've thought about some background process running an irb session that each command from the shell is passed into.
Essentially storing context/state in a background irb object. That way you can switch between "shell-mode" and "ruby-mode" whilst maintaining variable context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions