From: Marc Chantreux <eiro@phear.org>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: zsh : launch tmux in just one terminal
Date: Fri, 1 Oct 2021 15:25:07 +0200 [thread overview]
Message-ID: <YVcMMxsXQoUP64Ko@prometheus.u-strasbg.fr> (raw)
In-Reply-To: <25394e2a-e7cd-3f24-a3e6-867b9e49b41f@rayninfo.co.uk>
hello,
> 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?
They just don't: consoles are just devices, not programs.
The way i deal with it is to create specific way to call terminal via
desktop files.
in my /home/mc/.local/share/applications, i have
---[ tmux_attach.desktop
[Desktop Entry]
Comment=terminal multiplexer
Exec=tilix -e tmux att
Icon=mksh32
Name=attach tmux session
Type=Application
---[ tmux_back.desktop
[Desktop Entry]
Comment=terminal multiplexer
Exec=tilix -e zsh -ic 'c&&tmux'
Icon=mksh32
Name=cd back with tmux
Type=Application
---[ tmux_session.desktop
[Desktop Entry]
Comment=terminal multiplexer
Name=new tmux session
Exec=tilix -e tmux
Icon=mksh32
Type=Application
Note 1: c is just a command i wrote to navigate in a MRU directories list.
it's basically cd $( fzf < ~/.was-pwd )
regards
marc
next prev parent reply other threads:[~2021-10-01 13:26 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 [this message]
2021-10-01 13:30 ` Steve Dondley
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=YVcMMxsXQoUP64Ko@prometheus.u-strasbg.fr \
--to=eiro@phear.org \
--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).