Skip to content

Accept user settings as environment variables #272

@shazow

Description

@shazow

Something like:

$ SSHCHAT_TIMESTAMP=1 SSHCHAT_THEME=mono ssh -o SendEnv "SSHCHAT_TIMESTAMP SSHCHAT_THEME" chat.shazow.net

or with an ssh_config:

Host chat.shazow.com
    SendEnv SSHCHAT_TIMESTAMP SSHCHAT_THEME

And with SSHCHAT_TIMESTAMP and SSHCHAT_THEME exported properly, then normal connection would work.

This would be equivalent to connecting and running:

/timestamp
/theme mono

This is related to #104 because something like TERM=bot should be equivalent to /theme mono.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions