]> Sergey Matveev's repositories - mmc.git/blobdiff - doc/usage.texi
Simpler scrollback history getter
[mmc.git] / doc / usage.texi
index cfd8046447afef1da1ff650597c194ecb2441ffe..b0f4a8005ef316bd8eedf9d39914986cd0307d02 100644 (file)
@@ -6,11 +6,19 @@
 @item Get the @url{git://git.stargrave.org/mmc.git, source code} and
 compile Go programs in @file{cmd} subdirectory.
 
+@example
+for c (cmd/rd cmd/mmc cmd/sb cmd/ch-leave) @{
+    pushd $c ; go build -ldflags=-s ; popd
+@}
+@end example
+
 @item Create and change to the directory where the state will be kept.
 
 @item Place your MM's credentials to @env{$NETRC} (@file{~/.netrc} by
 default). For example
-@code{machine mm.example.com login stargrave@@mm.example.com password PASSWORD}.
+@code{machine mm.invalid login stargrave@@mm.invalid password PASSWORD}.
+
+@item Set @env{$MMC_ENTRYPOINT} environment variable to your entrypoint.
 
 @item Run @command{cmd/start} and you should see started @command{tmux}
 with split window and running @command{cmd/mmc}.
@@ -44,8 +52,9 @@ message at the bottom of the screen.
 @file{FILEID.tar} archive in current directory.
 
 @item After you just logged in, @command{cmd/mmc} checks for new
-messages since you were offline. So some windows could be automatically
-opened because of new messages.
+messages since you were offline, if any messages were in the state's
+history. So some windows could be automatically opened because of new
+messages.
 
 @item By pressing @code{Prefix+Q} you will destroy the whole session and
 quit @command{tmux}.
@@ -53,4 +62,10 @@ quit @command{tmux}.
 @item @command{cmd/mmc} heartbeats server each minute to tell that you
 are online, preventing you becoming away.
 
+@item You can preliminary fill your history:
+
+@example
+for c (users/*(/) chans/*(/)) cmd/sb/all $c
+@end example
+
 @end enumerate