]> Sergey Matveev's repositories - mmc.git/blobdiff - doc/usage.texi
Sync user's history
[mmc.git] / doc / usage.texi
index d64b9990b05bdde021913e37194d34b9a9549f29..b8ebf7883bff6af3ed3c5c69afb04a7d2164053f 100644 (file)
@@ -6,6 +6,12 @@
 @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/scrollback 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
@@ -46,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}.
@@ -55,4 +62,13 @@ 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/scrollback -whole `cat $c/id` > $c/out.rec
+    cmd/last-update < $c/out.rec > $c/last
+@}
+@end example
+
 @end enumerate