Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Executing command on reattaching to screen session
- X-seq: zsh-users 18439
- From: Sebastian Stark <seb.stark@xxxxxxxxx>
- To: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- Subject: Re: Executing command on reattaching to screen session
- Date: Thu, 13 Feb 2014 08:32:57 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mnskdpXD763UF2su3LzOCokXpAUn1xUVYrz1htRgWqE=; b=j2UOUqvsLyuYl1qdZrevp9Fqd6K5vxJJ0MMw/66J/AI4/5/qL5a5vF3NVrMRDnsSrT 0xvOXWrw2Efxm9Rn8GpTkUHu4VxnH1okkha3wPdfVBDvDjrQoJG9cGxquJJsRnztwuXF JO6i331Bh9yIypSLKH3k48NhI72d1q/SK61mspnDS0ECu+X8dxCARqCvoL5mKXxTtdbt sCriP7VfxbjBkCYG2zAlx9rwgv+2GcaZ7z1kDJPehs8ke8Oo8tJEGesP29OdzdcLff61 DyDhRRNaQtkCTrXzJ9GSrekxFVmpciHQEyn5Jm1Ckve50PJ+DdAQxl+Azd1aJbhgUlIn fbIQ==
- In-reply-to: <ld0k6c$a3a$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <ld0k6c$a3a$1@ger.gmane.org>
As a side note: if you do this un Ubuntu and expect motd to show the
current system load and such you'll be disappointed. It will update
/etc/motd only on login.
2014-02-06 19:27 GMT+01:00 Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>:
> Hi,
>
> tough question: can I automatically execute a command on reattaching
> a detached byobu (screen or tmux) session?
>
> Every time I login, /etc/motd is displayed. Since I hardly ever log
> out and in, I'd like to have the same functionality when reattaching
> to my detached session. This could be a simple cat /etc/motd kind of
> "autostart".
>
> Thorsten
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author