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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23872 invoked from network); 1 Oct 2021 16:55:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2021 16:55:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633107340; b=r5EA8XrM1Miq8j+eTFd/moj6+OEGAf0cpDOFZ3cJLYa4R+VQw7WldpGPPm3RB4LzRr/omVVZIv aUCJIZ2W4AmDMIwgWs1eACKSWx8NbdAXpVninC4pt81SJZ4dG9fZb0BZLZzKpQcWnlOLWGPC2X 5UFdUGBEiTHdQDvuqHKtI9AdGrB0dNnQqUqqDSOJZyTDE/t6VcQf0WnJqcYmMntZtiDluBrnQH CfZ8o/zo4Ok6AHNER8sldPtD6UkO3Tiu/JH/M10gepxB00wNmv+8NlzPS1uh68tNwctv3U4LdX Ld2M7hzEweS3VPNw83MZz3Dib5OvtSXJ5P+wuZFVP6pP3g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (p3plsmtp25-06-2.prod.phx3.secureserver.net) smtp.remote-ip=216.69.139.22; dmarc=none header.from=rayninfo.co.uk; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1633107340; bh=sPPwea9c6wBsWiOUXnuDoz+XGFalMcUyZMHtxgBJLJU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=NFOJ3dzWapeB8SNw/RRSV2m7UvCFHNuR2QieXNvnUz6BWT0NIMxpJ0SssHzyEeGfL32Ej1S8qC aKOLys7y0RYWSw/e4BMmgRzj+aUEmx9/J9KsFt02HuzQOfo3Qw0HsfHgYq39A7ehmisCjWDBmh kFomGwhQeIHlhr1o+c3tNUlzbrAvzY/p4PtZ1wAPn1mXFy2DD8SqyoweHa5fzcqq5znFfR9Rb7 k4EhKw6YV5qKxpR+Mdm5AJweJHNTWSMggsUA2zgh2J+KCU9lUBjy19dVA4w5IvI3r5crcox9Qh z2QX0Dnn4vR9YatwvXPqTMSAPQIWMOs7gxmST1fWFeiXmQ==; 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:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=sPPwea9c6wBsWiOUXnuDoz+XGFalMcUyZMHtxgBJLJU=; b=Gl5Y4IkcBLO9QDhOjA321/nRl8 t3dudoJ8j+0vYXwBFK78Dk/iGLa5FTwhqeec6ifiI9p64Pbh6zWvvWWBejc13AVPbPgvCBdd64kmY rv3fDpuLAfwR0jjez8R1uelRSbMigR+FBqN21Fv5N91L/NGcgH3gUr2IkSzTcaUFYhAlR+XvTM2/r d38HWuRaWHU3cPazAAc/Sti/z0I/RTd+GBU5YaZL2OOQkMM3nm4DQlISlwChXwwM+Ckyr9eQ9uc2J pURZJEYaunFOY4xxy6HMK3TNbPPW9frHIkrMeU93C3kGg+Esi3oQJdftNgAFPnkj99ylMCXKLyJyA z566ATCg==; Received: from authenticated user by zero.zsh.org with local id 1mWLoy-0009AJ-05; Fri, 01 Oct 2021 16:55:40 +0000 Authentication-Results: zsh.org; iprev=pass (p3plsmtp25-06-2.prod.phx3.secureserver.net) smtp.remote-ip=216.69.139.22; dmarc=none header.from=rayninfo.co.uk; arc=none Received: from p3plsmtp25-06-2.prod.phx3.secureserver.net ([216.69.139.22]:43687 helo=p3plwbeout25-06.prod.phx3.secureserver.net) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1mWLoF-0008QG-0i; Fri, 01 Oct 2021 16:54:55 +0000 Received: from mailex.mailcore.me ([94.136.40.144]) by :WBEOUT: with ESMTP id WLoBmYCSBxq1KWLoCmRuoy; Fri, 01 Oct 2021 09:54:52 -0700 X-CMAE-Analysis: v=2.4 cv=NbMja0P4 c=1 sm=1 tr=0 ts=61573d5c a=wXHyRMViKMYRd//SnbHIqA==:117 a=Pk9gNuDlizNDLaOuh3tA+g==:17 a=B0AUBVgQ8ScA:10 a=IkcTkHD0fZMA:10 a=8gfv0ekSlNoA:10 a=gOrGubQgxBwZ2mWzMEsA:9 a=QEXdDO2ut3YA:10 X-SECURESERVER-ACCT: david@rayninfo.co.uk X-SID: WLoBmYCSBxq1K Received: from [95.146.215.28] (helo=[192.168.1.231]) by smtp06.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1mWLoB-0002j8-AO for zsh-users@zsh.org; Fri, 01 Oct 2021 17:54:51 +0100 Subject: Re: zsh : launch tmux in just one terminal To: zsh-users@zsh.org References: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk> From: zzapper Message-ID: <1d1fba0d-5769-8b7c-b8d8-c53a9df0c601@rayninfo.co.uk> Date: Fri, 1 Oct 2021 17:54:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailcore-Auth: 8308408 X-Mailcore-Domain: 840527 X-123-reg-Authenticated: david@rayninfo.co.uk X-Originating-IP: 95.146.215.28 X-CMAE-Envelope: MS4xfJLqTxfY1vr2YFe0SDLohJ6G+cHA4vHQrHa3B9AgAPh08Gjg2kzLTZ8W5A9Jil55bv/baSE8L34mRdjhPeB8hMH4+9SkLU732wTo1cuuzetLKidJ59xk bdthqghRHJv2Fq/LhkcnP2gQsq6ufbxU5iU/WskP96n34mFtPCNmeN2g6JjVqSAwVuuoeLMLsPQb8g== X-Seq: 27203 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: Thanks for both answers this seems to be what I need if pgrep "tmux" > /dev/null ; then echo "Running" ; else echo "Stopped" ; fi > > > Best regards > > David Rayner > > >