mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-06 02:13:07 +03:00
Changing commands to use SetEnv
instead as it is more compressed.
parent
239e6d8e3e
commit
a6b9427a2f
@ -4,7 +4,7 @@ A [new feature](https://github.com/shazow/ssh-chat/pull/333) of `ssh-chat` is th
|
||||
|
||||
The simplest variable is the `SSHCHAT_THEME` variable which allows you to define what theme you would like for your session. This can be defined to match any theme defined within `ssh-chat`, so for example to connect using the `solarized` theme, which is normally activated by running `/theme solarized`, you can instead do the following:
|
||||
```bash
|
||||
$ SSHCHAT_THEME=solarized ssh -o SendEnv=SSHCHAT_THEME -i my_id_file username@ssh.chat
|
||||
$ ssh -o SetEnv SSHCHAT_THEME=solarized username@ssh.chat
|
||||
```
|
||||
|
||||
Upon joining, your session's theme will automatically be `solarized`. This works for all themes (`mono`, `colors`, `hacker`, `solarized`, etc).
|
||||
@ -13,7 +13,7 @@ Upon joining, your session's theme will automatically be `solarized`. This works
|
||||
|
||||
`ssh-chat` supports the ability to log messages with a datetime stamp next to each received message. This behavior is enabled by running a `/timestamp` command within the chat. It can be turned on before connecting by doing the following:
|
||||
```bash
|
||||
$ SSHCHAT_TIMESTAMP=1 ssh -o SendEnv=SSHCHAT_TIMESTAMP -i my_id_file username@ssh.chat
|
||||
$ ssh -o SetEnv SSHCHAT_TIMESTAMP=1 username@ssh.chat
|
||||
```
|
||||
It also supports the ability to pre-load a datetime format as well.
|
||||
|
||||
@ -24,6 +24,6 @@ The `TERM` variable is meant to enable specific modes of `ssh-chat` which change
|
||||
|
||||
To turn on a specific mode, you can run the following:
|
||||
```bash
|
||||
$ TERM=bot ssh -o SendEnv=TERM -i my_id_file username@ssh.chat
|
||||
$ ssh -o SetEnv TERM=bot username@ssh.chat
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user