Skip to main content

Questions tagged [tmux]

tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

406 votes
11 answers
207k views

Write all tmux scrollback to a file

How can I write all the scrollback in a tmux session to a file? capture-panel can grab the current screen, but not the entire scrollback.
David Wolever's user avatar
348 votes
8 answers
175k views

How do I equally balance tmux(1) split panes?

I'm looking for a behavior that is similar to how vim(1) handles its split windows with ^w =. I know tmux(1) has predefined layouts with ^b Meta[1-5], but this likely does not have the layout that I ...
Aaron Toponce's user avatar
310 votes
8 answers
169k views

Moving tmux pane to window

How do I move an existing pane into another window in tmux when I have multiple windows, and vice versa? I'm coming from screen, where I can switch to the pane and then switch windows until I get to ...
mrlanrat's user avatar
  • 3,203
300 votes
8 answers
169k views

How to create a new window on the current directory in tmux?

Is is possible to open a new-window with its working directory set to the one I am currently in. I am using zsh, if it matters.
sharat87's user avatar
  • 4,299
263 votes
10 answers
313k views

Getting 256 colors to work in tmux

I have 256 colors working just fine in konsole,. I thought I'd give tmux a try because, unlike screen, it seems to support vi mode. However I find that the colors of my prompt show up and this is ...
xenoterracide's user avatar
210 votes
9 answers
243k views

Copy text from one tmux pane to another (using vim)

I have two files opened in vim, each in one tmux pane. I would like to copy let's say 10 lines from one file to another. How can I accomplish this not using the mouse's Copy -> Paste ?
Patryk's user avatar
  • 14.3k
209 votes
10 answers
82k views

tmux vs. GNU Screen [closed]

Browsing through questions I found about tmux (I normally used GNU Screen). My question is what are pros and cons of each of them. Especially I couldn't find much about tmux.
Maja Piechotka's user avatar
204 votes
13 answers
213k views

How to start tmux with attach if a session exists

If I use tmux attach I can attach to a running session but if there is no session running, I only get the error no sessions How can I automatically start a new session if there is none running? ...
rubo77's user avatar
  • 29.4k
191 votes
5 answers
59k views

Renumbering windows in tmux

I frequently end up with more than ten windows in tmux. Later on, I close some of my older ones. Is there a way to renumber, say window 15, to window 3 (which doesn't exist anymore)? Or to pack them ...
dogbane's user avatar
  • 30k
176 votes
21 answers
202k views

How can I set my default shell to start up tmux

I would like my default bash shell to go straight into tmux instead of my always having to type tmux every time.
Michael Durrant's user avatar
152 votes
2 answers
310k views

exit tmux window without quitting the Terminal program

OK I'm new to this. I installed tmux to run a several days experiment. After typing tmux new -s name I got a new window with green banner at the bottom. I compile and run java program. Now I do not ...
seteropere's user avatar
  • 1,639
148 votes
6 answers
88k views

What are other ways to share a tmux session between two users?

I'm looking for a clean and easy way to share a tmux session with another user on the same machine. I've tried the -S socket-path option, but it requires opening up all permissions of the socket-path ...
Ryan McGeary's user avatar
  • 1,585
140 votes
1 answer
38k views

Attach to different windows in session

I have a pretty simple tmux session running with two open windows; one of them for local hacking and one of them for work. What I'd like to do is to simply connect to the hacking window while ...
Naftuli Kay's user avatar
  • 40.2k
139 votes
1 answer
52k views

How to make tmux count windows starting from 1 instead of 0?

I was able to make GNU Screen start counting windows with the number 1 instead of the default 0 with this code in my .screenrc: # Get rid of screen 0 bind c screen 1 bind ^c screen 1 bind 0 select 10 ...
hekevintran's user avatar
  • 3,733
135 votes
17 answers
127k views

Getting tmux to copy a buffer to the clipboard

I am trying to figure out a decent way to copy what I have in a tmux buffer into my clipboard. I have tried a couple of different things like bind-key p select-pane -t 2 \; split-window 'xsel -i -b'...
Digital Powers's user avatar

15 30 50 per page
1
2 3 4 5
91