zsh-users
 help / color / mirror / code / Atom feed
From: Steve Dondley <s@dondley.com>
To: zsh-users@zsh.org
Subject: Re: zsh : launch tmux in just one terminal
Date: Fri, 01 Oct 2021 09:30:37 -0400	[thread overview]
Message-ID: <f12de14478be8b8616e7132432780549@dondley.com> (raw)
In-Reply-To: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk>

On 2021-10-01 06:47 AM, zzapper wrote:
> hi
> 
> I would like to my first invocation of a 'Gnome terminal' on Linux
> mint  to automatically launch tmux but not for any subsequent consoles
> .
> 
> 
> My more generic question is how can consoles share information?
> 
> 
> Best regards
> 
> David Rayner

I'm not sure I completely understand what you are trying to do. But it 
sounds like you want to detect if tmux is already running. I'd run a 
simple script when the terminal starts up using this feature: 
https://superuser.com/a/591333


  The script will detect if the tmux process is running by grepping the 
output of the 'ps' command and launch tmux if it's not already running.


  parent reply	other threads:[~2021-10-01 13:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-01 10:47 zzapper
2021-10-01 13:25 ` Marc Chantreux
2021-10-01 13:30 ` Steve Dondley [this message]
2021-10-01 16:54 ` zzapper
2021-10-01 17:19   ` Michael Klemm
2021-10-01 17:43     ` Bart Schaefer
2021-10-01 20:16       ` Ray Andrews
2021-10-01 20:34         ` zzapper
2021-10-01 20:53           ` Steve Dondley
2021-10-01 23:06             ` Ray Andrews
2021-10-02  4:52               ` Steve Dondley
2021-10-02 14:40                 ` Ray Andrews
2021-10-02 16:04                   ` Steve Dondley
2021-10-02 19:09                     ` Ray Andrews
2021-10-01 23:03           ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f12de14478be8b8616e7132432780549@dondley.com \
    --to=s@dondley.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).