5 ms·
Wow, I've tried tmux like a hundred times and could never learn to like it, falling back to screen and promising to myself - never again. I'm going to break my
by suslik 1y ago
Wow, I've tried tmux like a hundred times and could never learn to like it, falling back to screen and promising to myself - never again. I'm going to break my promise to try this.
- antonvs 1y ago> falling back to screen So you're saying you're a masochist
- hdgvhicv 1y agoI’ve used screen for 25 years. What am I missing without tmux?
- em-bee 1y agomainly sessions, i think, and maybe scripability. sessions are groups of windows. i have one session per project or work mode. (one for email and connecting to remote machines, one for writing stuff, one for managing my hobbies, one for dev work...)
- nothrabannosir 1y agoScreen has sessions. You can name them, and choose which session to resume when you reconnect. I use tmux now because it’s supposed to be cool but secretly like gp I also wonder what the actual difference is , besides a different default leader key. Oh and killer iterm2 integration.
- em-bee 1y agoit's been a long time since i used screen. afaik screen had one session per process. you could switch processes by detaching from one and attaching to another. in tmux it's all one process, which allows you to create new sessions and switch them interactively and move windows from one session to another, or even have a window in more than one session. i can also see all windows from all sessions: (0) - main: 6 windows (1) ├─> 0: elvish- (2) ├─> 1: elvish*: "[mosh] embee@foo:~" (3) ├─> 2: elvish (4) ├─> 3: elvish: "embee@bar:~" (5) ├─> 4: elvish: "[mosh] embee@fedora:/etc" (6) └─> 5: elvish (7) - local: 6 windows (attached) (8) ├─> 0: elvish (9) ├─> 1: elvish- (M-a) ├─> 2: [tmux]* (M-b) ├─> 3: elvish (M-c) ├─> 4: elvish (M-d) └─> 5: elvish (M-e) - dev: 7 windows (attached) (M-f) ├─> 0: elvish* (M-g) ├─> 1: elvish- (M-h) ├─> 2: elvish (M-i) ├─> 3: elvish (M-j) ├─> 4: elvish
- nolist_policy 1y agoIsn't the screen equivalent literally this? Host tmux HostName 1.2.3.4 IdentityFile ~/.ssh/etc.etc.etc RequestTTY force RemoteCommand screen -dR Edit: I guess it's missing the iTerm integration
- fouc 1y agoI've always found screen's ctrl-a is so much easier to reach for than tmux's ctrl-b. I recommend re-mapping ctrl-b to ctrl-a
- _kst_ 1y agoI use Ctrl-Space. unbind-key C-b set -g prefix C-Space bind-key C-Space send-prefix I find it a lot easier to type than either Ctrl-A or Ctrl-B.
- cyberpunk 1y agoThe real superpower prefix key is ` especially if you have a british mac keyboard.
- __david__ 1y agoBoth C-a and C-b are so commonly used that I don’t like either of them. I ended up going with C-\ since I only rarely use that one.
- anthk 1y agoI just remapped the keys to ctrl-z after I swapped ctrl and caps lock. As you'd never suspend stuff under tmux for obvious reasons, you'll get the whole keyset for any cli/tui software.
- rcakebread 1y agoI'll bite. What's so obvious? I suspend jobs in bash all the time while using tmux.
- anthk 1y agoOften TMUX it's for tasks you woudn't suspend. And, if any, you can just use kill -STOP and kill -CONT among other signals from another tmux pane.
- deleted 1y ago