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 19631 invoked from network); 1 Oct 2021 20:54:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Oct 2021 20:54:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633121676; b=YbGPHrg/6oZ4nhwSUFgcSznDbMI+498ZYT5d+UGB9tDEJ6ewcHHgQDLGor0O6XZ//PD6dT1ysG yjksLlZdHEqWZk9dd3dlVZJW6vQNfzMuRRagxQPkgCIDtj0gyoHzGPGCpPmwbl7iCNyA2ui+G7 mRbZL7YefOk71sXCQhjmgkSfOttSmcCqa0RSQM7iQjKteAfkrY/JFxAut9fraIErsiU9mOJ2V4 aw//vQRh0TPTlbroptSSaxesEr2me2K4BtwWBUnDAlqWAIih5kbRutW5rCKS/PWXxppb/gB2eB wlYR8qYBgGG4kaeGaMKa+qVO9ayEu4S+XmMMacM+O5DewA==; 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=1633121676; bh=ODx9xyFzHp5V5jV9U7z2JMDv0Lq8Nr1sp6JDfoIlcSw=; 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:Cc:To:From:Date:MIME-Version:DKIM-Signature: DKIM-Signature; b=FzYZiXG7x6lvqFTMlL1ssE+k5xHlIV0A1wDC2gplcdumDfmV8wIROTLQgrHw/8T8wO+HLTpEAO Z0buscG/+3td8EIwsFs0nmNYnyhogp7O+YsTmEibedLnnPDb6thX27F7Gx4Ak8CYltkX3quOlo KB5+ZyKqoKtTlsrJ9OtvoKSEZp17i+jrD4H+3fXdQCK83ZIAC0bJiiH9wHRFPdBtbYZGtw3PWh PQCsNMVdWK8awxJ/a4TvjJaBcIXXoJcazGwROeB+tf9hU21JGTKEgAlG9CF5Ik24jNbp+vSa04 EZsUKpWnoa8J3lmLkr//ddX9EMWOBDvtN0RAZfP2ArLe2g==; 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:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=A7hgI4SFBXPcaNRVsie/v8JIBHFR9VIuNfj0pGf7os0=; b=BXmWSZ0DaRTDqOsBwyP8CHL72R bucT4hHndcdqouAe7UvsHsf0Nc5gzNb6jRFvmDd06xm4mhWF5uNQk6t5X9l3Ok3V/IMdhmnIMs50S MyNpraQr6ajC6bpB/+APpuXv1K2E3zA1+6ph7k0qzS+XDzvfsQy0yUGqzkKk6yQBcg9JDpg01PhGZ kz7Tl204YSuuDtxlqboN5EeIcpyzsx/Ltu4uh7PN9rb5uzQAOE9Nu3J/F6bIkC0fqwXkO3vVy7WRI 2THVK8deYUQLpFwUg+9VcPX6TSpvzxuLVq519UY+Bz1gwrjXaFZq60v9/Sypf/Sn5D1zU4BYozzK5 VP/WyXaQ==; Received: from authenticated user by zero.zsh.org with local id 1mWPYC-000OTd-1R; Fri, 01 Oct 2021 20:54:36 +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]:33308) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mWPXX-000Nmy-2N; Fri, 01 Oct 2021 20:53:55 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id 711DA207A1; Fri, 1 Oct 2021 16:53:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1633121633; bh=ODx9xyFzHp5V5jV9U7z2JMDv0Lq8Nr1sp6JDfoIlcSw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MfAC9XltWQzTETqXypRejGF8d5utLpLcBB6JrLaOR+tA/ntxwnav49doV/IIV90dt xsG6ByTGSOz5W2iV9RVxuaO5z4s61Aj6VkMLygz2ugTLckc3fHie4JY90TKUHFWENp 8lIeHVAwzrhHY1LVWs6js8uwraSUh8AzdKZL7auaq0MOHRSnCiq0jxVoW1SiaE4BN3 M6CyXE0ToPpG/HCTZuiZPF7B2dRaLwiQch+4XRqHnicl6cunyFqHRFJwhEjBsWeUzZ WP62gjuDu0wQNefE3KWLyCVoLz2aYGyNBrA0AIqRi8KrNuxO8fzFPQccBsQCF0u8R3 mgsvU/e1XF34w== MIME-Version: 1.0 Date: Fri, 01 Oct 2021 16:53:53 -0400 From: Steve Dondley To: zzapper Cc: zsh-users@zsh.org Subject: Re: zsh : launch tmux in just one terminal In-Reply-To: References: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk> <1d1fba0d-5769-8b7c-b8d8-c53a9df0c601@rayninfo.co.uk> User-Agent: Dondley Message-ID: <5e8d6535baafeaf936187da16e50cb53@dondley.com> X-Sender: s@dondley.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 27208 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 04:34 PM, zzapper wrote: > On 01/10/2021 21:16, Ray Andrews wrote: >> On 2021-10-01 10:43 a.m., Bart Schaefer wrote: >>> >>> Just make it:  pgrep -u $USER tmux >>> >> If it's not too far off topic, what's the advantage of tmux over just >> a whole bunch of xterms? One huge advantage is the ability to switch very quickly between different terminals. This is great when you have a lot of vim terminals open when you are doing development work. You can also group the different terminals into windows and the windows into sessions, offering an insane amount of organization. Organizing let's say 50 different shells is a breeze. It's especially useful when you ssh into another machine. You run a tmux session on the remote machine. If you get disconnected or power your local machine down, you can log back in and be right back where you were. This can also be done locally with a plugin, tmux resurrect. So if your computer goes down, your terminals will be right there when you fire up tmux so you can jump back into working. There's many more advantages, but these are the big ones.