Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #223896
| From | davidson <davidson@freevolt.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: from screen to tmux |
| Date | 2020-06-23 01:10 +0200 |
| Message-ID | <AkDJE-7uT-5@gated-at.bofh.it> (permalink) |
| References | <Aksbv-jy-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 22 Jun 2020 Victor Sudakov wrote: > Dear Colleagues, > > I'm trying to switch from screen to tmux and for the life of me cannot > make it work the way I like. I have screen create multiple windows on > startup, by the following lines in ~/screenrc: > > screen -t localhost 0 > screen -t foo 1 > screen -t bar 2 > screen -t mail 3 > select 0 > > I've tried multiple variants of ~/.tmux.conf and cannot make it start > with 4 windows. Tried different combinations of new-session, new-window, > attach-session, select-window and whatever, but when I run tmux, I just > see a single window. > > What would be the equivalent of the above screen commands? The first line below changes the command key from Ctrl-b to Ctrl-a, to emulate Gnu screen. $ cat ~/.tmux.conf set-option -g prefix C-a new-session -nlocalhost -sMyFirstTmuxSession new-window -d -nfoo -t1 new-window -d -nbar -t2 new-window -d -nmail -t3 I started my first session with this command: $ tmux attach And when I detach it, I can resume it again with the same command. I based the config file above off the following example config, after some hunting around in the man page. $ tail -n12 /usr/share/doc/tmux/example_tmux.conf # Create a single default session, because a session is created here, tmux # should be started with "tmux attach" rather than "tmux new" new -d -s0 -nirssi 'exec irssi' set -t0:0 monitor-activity on set -t0:0 aggressive-resize on neww -d -ntodo 'exec emacs ~/TODO' setw -t0:1 aggressive-resize on neww -d -nmutt 'exec mutt' setw -t0:2 aggressive-resize on neww -d neww -d neww -d The modifications were mainly to replace all the aliases in the /usr/share/doc/ example with the corresponding full command names. (Seems a bit weird to put abbreviated aliases in a example meant to provide documentation.) -- Firstly, you must always implicitly obey orders, without attempting to form any opinion of your own respecting their propriety. Secondly, you must consider every man your enemy who speaks ill of your king; and thirdly, you must hate a Frenchman, as you do the devil. --H. Nelson
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
from screen to tmux Victor Sudakov <vas@sibptus.ru> - 2020-06-22 12:50 +0200
Re: from screen to tmux Kenneth Parker <sea7kenp@gmail.com> - 2020-06-22 13:20 +0200
Re: from screen to tmux Brian <ad44@cityscape.co.uk> - 2020-06-22 14:20 +0200
Re: from screen to tmux Victor Sudakov <vas@sibptus.ru> - 2020-06-22 18:50 +0200
Re: from screen to tmux davidson <davidson@freevolt.org> - 2020-06-23 01:10 +0200
Re: from screen to tmux Victor Sudakov <vas@sibptus.ru> - 2020-06-23 07:20 +0200
Re: from screen to tmux davidson <davidson@freevolt.org> - 2020-06-24 00:20 +0200
Re: from screen to tmux Victor Sudakov <vas@sibptus.ru> - 2020-06-24 06:20 +0200
Re: from screen to tmux Victor Sudakov <vas@sibptus.ru> - 2020-06-24 09:40 +0200
terminfo descriptions (was: from screen to tmux) Vincent Lefevre <vincent@vinc17.net> - 2020-09-09 11:20 +0200
csiph-web