From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 993 invoked from network); 1 Oct 2021 13:31:26 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2021 13:31:26 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633095086; b=qjczAni+MnmUt8xmbJYF7gd2CP5jJ6AUCLTiZ3Nq/sY548A4li3m11RvOLqk8r3NfcewTtuN3H Ho7cZw6Hzf+VVoThFpQGDezuAuSYITQkrYQEUB+k7z39ZEhPyTeK5rPbDEHeIOotfiEN70kSAj XbyQbXlPfLJlHRUqVOKnuvrTmL9YP2wREByObNMfmodEgnBZjcGFVNt0Rm2PHrzKtFmQVcAr0n onUNtGZjJtPCS1ENLIhMcPf4ts2sYT4xV+JkyNZaJTuhtsyD+9Jo4xMZiuccCtI4hCyRCpCLrY KFHhT04fPpbGTNkxDfOVZNJlQkp4d6ewDbog5AZek8NICQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1633095086; bh=Bh0GpKdUrGtxdK/JFeEoSyXXbRw/7gPqR9aI98zpchk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:To:From:Date:MIME-Version:DKIM-Signature:DKIM-Signature; b=khAN91t2OaKqaRWCqJO1YFnWrmsKRN7f8WFk0vXibR9QQg/V6etVhA3qzWO1DcJFb4FRxL1eo0 lnrxdDWJ0PK6bCi5La0mUZAo/AlWm4C35baKUU8HSRe9ac4V6wTg37hHi2E6CK81j/RyoRBKvf DzjN3h2EwsRFjxiFJpVJcTTErzbJ19su+kmcPF3CtTUWDNsAkOIPdt3EojLVW0F2gx59dUG+O8 Rvza2CPcQ9420C70ZP86F7TY0unw4wmFNYFVhABYauGBZMKQmyo1TXMZfZhw2QaltxZgNUHWbW Rzi6N2Zy8Yx35buFpURogM9bY7HbGLV3Qz38M4R16j43vA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Message-ID:References:In-Reply-To:Subject:To:From:Date: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=LjXitlsgYGpO2naDhLUuXVlFrWV4Cb4fSvevtmeKzjA=; b=OT3IhfDRqY1jRMLDBHz8voyPf2 wJr2jqnccyPO+xPcRHHDDFglV3/tPqGUIlw7HLIdSJtp13CUJfwd/8gijXEpwn/OOpoiI4kSQKwGc srhPKiOWshAFiHmOHIrat0PeLEUgi4KhSdMrcGMKlIoyOnx8d1X9GXYI1vDaXwFlLGTIn91VRYkFy XWFUoJmoy68dWufhDlSjFn1gW6SVVwnBko4tX1Xkhlgshs37puLBO7eFobG/45oHPiUhAsdyd9u76 eArlHcu0M7tvAkAUHWqaGQIs1Y1y02fJTL1Hq+gcscvLCZU5k+siYs8IqRtX1je9vAxFCrvwgKtmO 0LuNVE7w==; Received: from authenticated user by zero.zsh.org with local id 1mWIdJ-000OnM-Kj; Fri, 01 Oct 2021 13:31:25 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:47514) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mWIcZ-000O4D-Th; Fri, 01 Oct 2021 13:30:41 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id B6085207A1 for ; Fri, 1 Oct 2021 09:30:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1633095038; bh=Bh0GpKdUrGtxdK/JFeEoSyXXbRw/7gPqR9aI98zpchk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=tDU3Ztb+jwK5GU6+7VLWupMcrJ2MdOnrVocuclZAD6JHyQeiPrFagx+OfMi9HMP89 CgXTk2vounE/QIWDmI/vaA4Z5cMbx185riPN3peL0YrZuuXLXK+iQ3iE+pVP6hScrR IPt3h/PhKOmLujz16VQajYNstsEMPs45XUzeAHTbkFrnW2pbdIez2i/S5+IjolZ+/Z rkPwfeyBoEbpZnM71tmy7WGKdfdWhICC1Fbj6LEu14NHLhB6HASgJv6X1inx0E0XMd 6TpzIjTKJjXdj6bGO66c8ceZvA3nLHxshDvsRR/vGYJ6cMppvDHuomlV3vwra+5uIQ IGx2INhmQ3WmQ== MIME-Version: 1.0 Date: Fri, 01 Oct 2021 09:30:37 -0400 From: Steve Dondley To: zsh-users@zsh.org Subject: Re: zsh : launch tmux in just one terminal In-Reply-To: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk> References: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk> User-Agent: Dondley Message-ID: X-Sender: s@dondley.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 27201 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: 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.