Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept user settings as environment variables #272

Closed
shazow opened this issue Aug 24, 2018 · 2 comments
Closed

Accept user settings as environment variables #272

shazow opened this issue Aug 24, 2018 · 2 comments

Comments

@shazow
Copy link
Owner

shazow commented Aug 24, 2018

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.

@shazow
Copy link
Owner Author

shazow commented Apr 12, 2020

This was done in #333.

Need to document this somewhere, maybe in the wiki or README? (How to setup a nice ssh_config)

@shazow
Copy link
Owner Author

shazow commented Apr 23, 2020

@shazow shazow closed this as completed Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant