tmux is a terminal multiplexer, which allows users to work with terminals in terms of windows and panes, which can be created, destroyed, attached, and reattached at will.
1
vote
1answer
2k views
howto safely quit tmux session?
Currently I'm using kill-session command, but it looks a bit aggressive and often leave sub-processes running, e.g. I have the following processes running in separate tmux windows:
lighttpd -D -f ...
-1
votes
0answers
18 views
What does it mean to 'kill' a window in tmux
I've been using Linux and Emacs for a while, but I am brand new to tmux. I see that in the default key bindings, ctrl-b & can be used to "kill" the current window, but I do not know if this ...
4
votes
1answer
1k views
Can I get tmux split screen to retain the pwd?
Say my present working directory is /home/abc/documents/xyz. Now in tmux, when I split my screen, the new pane defaults to the /home/abc directory. I want the pwd to be retained upon splitting.
1
vote
1answer
22 views
Check if Vim has more than one window open
I'd like to overload my tmux binding which cycles through panes to also cycle through Vim windows if the current pane happens to be running Vim.
I can detect the presence of Vim by checking the pane ...
1
vote
2answers
22 views
If I have left and right tmux panes, how can I visually tell which is focused?
I've tinkered with tmux and have seen settings that would highlight the border of the active pane. This works fine for three or more panes.
However, my most common usage would be two panes side by ...
3
votes
2answers
833 views
How to find which Tmux session a process belongs to?
Case in point is editing a configuration file in vim and inadvertently leaving it open. Then you go about your business, switch around in different Tmux sessions, eventually edit the same file from ...
0
votes
1answer
34 views
How to execute a cleanup command on tmux server/session exit?
To improve my workflow a little I have written a few wrapper scripts to automatically start some commands when I want to work on a project. When I'm done however, and clean all the tmux tabs for this ...
1
vote
2answers
147 views
Is it possible to spawn an ssh-agent for a new tmux session?
I've seen lots of hacks for re-establishing contact with a GUI session's SSH agent from within tmux (and screen) sessions. I'm wondering if it's possible to de-couple from the GUI and spawn an ...
4
votes
2answers
1k views
tmux copy mode - select text block
I'm using tmux with vi keys, and copy/paste works fine as long as you're selecting one line of text, or if you have only one window. When I want to select a block of text (multiple lines, but not full ...
0
votes
1answer
73 views
OS X + tmux + vim + solarize + colors
I want to use tmux with console vim having solarized colors on OS X, but the colors are broken inside tmux. There are quite some questions/answers and blog posts about that topic, but solutions ...
0
votes
1answer
109 views
Weird distance between margin and cursor (iTerm2 + tmux)
I'm running iTerm 2 on 10.8 and I've installed zsh with oh-my-zsh and tmux (both from homebrew). When running zsh in iTerm it's all good, however, as soon as I run tmux, there is this weird distance ...
1
vote
1answer
24 views
Can't run 'rails' inside Tmux session in Terminal
I just tried rails inside a tmux session in iTerm2 and it returns as
-bash: /usr/bin/rails: /usr/bin/ruby: bad interpreter: No such file or directory
I can run rails outside of tmux . I am using ...
0
votes
1answer
880 views
Using gray color in tmux status bar
I am using iterm2 on mac os x and I can't get something like color245 to show up as gray, seems like tmux uses black instead. I am using iterm2 on mac os x. Any idea what might be wrong?
setw -g ...
5
votes
3answers
1k views
Synchronize pasteboard between remote tmux session and local Mac OS pasteboard
Setup:
I use iTerm2 on MacOS to connect to a remote server.
The remote server runs tmux, in which I open files and edit in vim sessions.
Problem:
I can't copy/paste between the remote tmux session ...
48
votes
8answers
8k views
“Maximizing” a pane in tmux
Sometimes it would be very useful to maximize a pane in tmux and then restore it to it's previous size.
I've been reading the manual and I can't find a way. What I've come up with is that I could ...
0
votes
1answer
29 views
ncmpcpp: playlist + library layout
I'm trying to replicate this ncmpcpp configuration
found on ArchLinux BBS.
It features a double-paned playlist window: on the left it shows a classic playlist, on the right there is a file browser ...
6
votes
1answer
262 views
Is there an easy way to save a byobu session such that I can reload it after a reboot?
I understand that there is a way of defining windows that are opened in a session by saving configuration files in $BYOBU_CONFIG_DIR. But is there a way (command or script) to save the current session ...
1
vote
1answer
23 views
Tmux key-table explanation
I was reading through the tmux man pages in order to understand the different options for bind-key and bumped into the -t flag:
If -t is present, key is bound in key-table: the binding for command ...
6
votes
3answers
734 views
Is there any way to prevent tmux freezing when lots of text is output to the terminal?
In a tmux session inside xterm when a programs generates lots of ouput (like a cat very_long_file the whole session in frozen for a while. Even if I press Ctrl-C nothing is interrupted. Presumably ...
1
vote
1answer
101 views
Get Ctrl+Arrow to work under tmux+urxvt
I have tmux command key as C-a. C-Left/C-Right to jump between words (or whatever it is called) works just fine in urxvt alone, but under urxvt/tmux it'll print '5D' and '5C' for Left/Right ...
0
votes
0answers
18 views
How to stop tmux from automatically switching windows
I have several windows in tmux, and it keeps switching windows without me requesting it. I haven't pinned down what triggers it -- it coincides with output in the target window, but when I run sleep ...
0
votes
1answer
33 views
How do I shove a pane to the left in tmux?
Suppose I have three panes stacked up horizontally and I would like to push one of them to the far left, such the other two panes are still stacked but on the right.
Current Setup:
Pane 1
----------
...
0
votes
1answer
63 views
tmux key binding: Window not found
My problem is I can't make tmux key bindings to switch windows.
I'm running tmux terminal multiplexer on the FreeBSD server. tmux is started automatically for all remote logins using ~/.bash_profile:
...
8
votes
4answers
571 views
tmux slow to interrupt process with Ctrl-C
If I run a command with a lot of output in tmux, but decide to cancel it with Ctrl-C, there's a 10-15 second lag before it stops. However, if I do the same thing outside of tmux, it stops immediately. ...
0
votes
0answers
16 views
key repeat when scrolling in tmux
When using tmux, I would like to keep the PgUp/Down key pressed to scroll quickly between pages. I press Ctrl-b PgUp to enter copy mode and to scroll the page, but if I keep it pressed, nothing ...
1
vote
2answers
70 views
tmux session not resuming to the same from different entry points?
I don't know if this is supposed to work by default, but it seems like when I try to resume a tmux session I have from one machine or a different one. I am using two different kinds of connection to ...
0
votes
0answers
43 views
Vim only takes up half the screen in tmux
When I run vim in tmux, it only takes up half the screen (usually the left half). I would like vim to use up the whole screen, but don't know how. Tmux still seems to consider the entire screen as ...
1
vote
1answer
19 views
TMUX: Configure length of titles
I have tmux configured to show my current working directory for each window (it gets this from bash)
The problem is, sometimes the directory names get too long and it takes up a lot of space.
In ...
1
vote
2answers
90 views
Does tmux “sort” the PATH variable?
I have a reproducible problem:
set up my PATH in Bash .profile
start tmux by tmux, tmux attach or any variant
echo $PATH and see it with the same components but in different order
How to stop ...
-1
votes
1answer
35 views
How to access multiple gmail accounts from the terminal
Is there a way to access several email accounts (gmail or yahoo) from the command line, I am using tmux
I want to be able to view received and send emails without accessing chrome or any other ...
1
vote
1answer
60 views
Vim on screen, without looking
I'm trying to do the following:
Start a new screen session
Start vim on it.
Feed commands to it.
Check the output
as a means of testing vim. I can do this, but the catch is that I want it to be ...
3
votes
1answer
73 views
No-socket alternative to tmux or screen
My university gives each student a directory on their AFS which is accessible via SSH. There is a (light) CLI-driven piece of software that I would like to run continuously from the university.
I ...
3
votes
2answers
198 views
gnu screen - get list of window titles
How can I obtain information (title, created time, visible content) about windows in a screen session? I need to do this in a script, so I am not looking for key bindings or interactive commands.
...
3
votes
1answer
423 views
Prevent an already running background process from being stopped after closing SSH client
I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish.
I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup.
...
2
votes
1answer
124 views
Is it possible to have zsh+keychain+tmux not ask for keys?
I'm using tmux and zsh, and I've recently been learning about ssh-agent and keychain. From the manpage for zsh, it says that it will source .zlogin only if the shell is, well, a login shell.
...
1
vote
2answers
522 views
Run a GUI in screen or tmux (or alternative)
I have an application that's gui only that constantly needs to run. The problem is that I can't install a full desktop just for this application (my OS is debian and ubuntu cli).
So I was wondering ...
3
votes
1answer
391 views
How to switch between two latest windows in tmux?
screen has a Ctrl-a,Ctrl-a to switch between two latest windows?
How to do it in tmux?
3
votes
1answer
321 views
ssh-agent key timeout with screen or tmux on bastion host
Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
1
vote
1answer
116 views
change colours when running screen
I use gnome-terminal in Centos 5.
I have my terminal settings customized to use the colours I like.
However when I run screen (or tmux) the colours for my terminal input lines are always inverted. ...
0
votes
2answers
274 views
vim : <c-a> occupied from tmux/screen
I use screen/tmux and vim.
In vim, I can't use <c-a> for increment a number, <c-a> is occupied from screen/tmux.
any suggestion for a simple map for increment a number ?
I try with
...
2
votes
1answer
659 views
Use Screen commands (C-A C-C, etc.) in byobu-tmux
I was having some troubles with byobu lately while using the screen back-end, so I switched to using the tmux back-end, which works like a charm.
The problem is now that my keyboard has tiny F1-F12 ...
2
votes
1answer
296 views
Move already running program into screen
Is it possible to have a already started program move to screen/tmux? I'd like to have something like the following:
program;
^Z
screen;
fg;
I know the above won't work, but is there a way to ...
3
votes
4answers
4k views
rename tmux window name to prompt_command, ps1 or remote ssh hostname?
I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. ...
2
votes
2answers
660 views
How can I keep the tmux prefix key pressed between commands?
In GNU screen, I can keep Ctrl+a pressed in between commands.
For instance, to change windows I keep Ctrl+a pressed and just keep pressing n without releasing Ctrl+a.
Is this doable in tmux? ...
1
vote
1answer
2k views
Running nicklist with irssi using screen inside tmux?
I try to run the nicklist addon with irssi using screen inside tmux but strangely :) it doesn't work and I get the input on top of the screen. Is it possible to run nicklist when you are on tmux?
0
votes
1answer
274 views
convert screen hardstatus to tmux
I'm a longtime screen user, but the move to tmux is growing inevitable.
I have a fairly large .screenrc that I am working toward porting to tmux (I'd like the bulk of my existing workflow to just ...
9
votes
5answers
4k views
alternatives to Gnu screen under Cygwin
Are there any terminal multiplexers for Cygwin/Windows other than Gnu's screen?
I know of 2 alternatives to the Gnu's screen application: Byobu and TMux. However, neither of these run under Windows ...
38
votes
5answers
10k views
tmux vs. screen
I'm about to get back into using screen, but I have been hearing people occasionally mention tmux as a better alternative. Does it really offer an alternative to all the features screen offers, such ...
9
votes
1answer
3k views
Binding a command in tmux without using the prefix key
Is it possible to bind a tmux command to a key combination and use it directly without first pressing the prefix?
I find C-b + n too cumbersome to switch panes, so I was wondering whether I could ...
3
votes
1answer
114 views
How to tab completion when typing command in tmux?
Some commands (kill-session and kill-server) have the same prefix.
When I type (prefix:kill-seTab), tmux won't give me any result.
Is there a option to show wildmenu for auto-completion inside tmux?
...