Tagged Questions

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.

learn more… | top users | synonyms

1
vote
0answers
26 views

“sticky” escape key in tmux

How would I go about configuring my tmux such that when I press my escape character, it stays in escape-mode until I press it again or press Esc? I.e. so that I don't have to press it repeatedly when ...
0
votes
0answers
43 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
3
votes
1answer
185 views

Waching YouTube videos in bash sessions, in ASCII mode

I already found how to watch YouTube videos in terminal, in ASCII mode, but my goal is to watch them in a bash session, without opening a different window. So, supposing I already have a tmux ...
3
votes
0answers
24 views

How to change background color of a pane in tmux?

I would like to change the background color of the inactive panes in tmux to better distinguish between the active pane and inactive panes. Something just a few shades different than the default. How ...
0
votes
0answers
43 views

Error when running TMUX under CYGWIN

When I run tmux in cygwin command line I get the error: $ tmux 0 [main] tmux 6688 C:\cygwin64\bin\tmux.exe: *** fatal error - NtCreateEvent(lock): 0xC0000077 Hangup I tried to reinstall tmux ...
0
votes
1answer
34 views

The form of the cursor in vim in konsole in kde with tmux

I use KDE and for vim in Konsole, I have such commands in my .vimrc: " Konsole " solid underscore let &t_SI = "\033]50;CursorShape=2\007" " solid block let &t_EI = "\033]50;CursorShape=0\007" ...
1
vote
1answer
28 views

How to get guake to update background characters?

This is actually a problem that also goes on with screen. Here is what it looks like (in mutt): When running a terminal application that builds an updated interface from Guake, tmux and screen ...
1
vote
1answer
31 views

Tmux: how do I bind to C— (control-minus)?

I'd like to bind to control-minus in my .tmux.conf but it doesn't seem to work: bind C-- split-window -v Is this possible?
0
votes
1answer
73 views

SSH to a server, execute update command that continues even after logging off the ssh session

Okay I saw a lot of questions like this, but almost all have either theoretical answers which do clear the concept but I am still not able to put it up in code. What I want to achieve using a bash ...
1
vote
1answer
38 views

how to make a tmux window remain open after running command

I'm fiddling with tmux, trying to make it approximate the behavior I've had screen set up for to meet my quite modest terminal needs (I'm no programmer). I just want it to start a couple of Bash ...
1
vote
1answer
56 views

Neither `less` or `less -X` clear screen on exit

Neither less or less -X clear screen on exit. At the same time, vim does.... Env iTerm2, protocol mosh, server Centos + tmux + zsh iTerm2: report term as xterm-256color tmux: set -g ...
0
votes
1answer
39 views

Can I get my iTerm key-combos working in tmux?

I have some shortcut keys defined in iTerm, and I use them for key-mappings in Vim. For example, I map Ctrl-Enter to send a ^[O2P escape code, which I then use to define a Ctrl-Enter key-mapping in ...
2
votes
1answer
42 views

What is tmux's “message-command”?

I've been trying to figure out how to change the background color of the command prompt in tmux's copy mode. It defaults to black on orange, at least on my setup. I changed the color of the command ...
1
vote
0answers
285 views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
0
votes
1answer
37 views

How to split a new window and run a command in this new window using tmux?

I have tried tmux -c "shell command" split-window but it does not seem to work. Using tmux split-window, one can split a new window. UPDATE: Using tmux split-window 'exec ping g.cn' can run the ...
1
vote
1answer
33 views

tmux blocks certain things on my Mac

I really like tmux and use it often so I set the following in my .zprofile: [[ $TERM != "screen" ]] && exec tmux so when I open a new window, tmux will be there for me. However, there are ...
0
votes
0answers
18 views

tmux session stops updating screen randomly

I use tmux 1.6-2 on a Debian 7.6 (wheezy). I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ). When ...
1
vote
1answer
59 views

share existing tmux session

I have a tmux session already running. I have created it just with tmux now I can leave the session and re-enter with tmux a -t 0 how can I share this session with other users? Usually one has ...
3
votes
1answer
37 views

Reorder tmux windows

How can I efficiently reorder windows in tmux? For example, having this set of windows: 0:zsh 1:elinks 2:mutt 3:irssi 4:emacs 5:rss 6:htop What would I have to do to move rss to between ...
1
vote
2answers
115 views

How do I create a simple tmux conf that splits a window?

I'd like to create a simple tmux conf that does the follow. Splits the window/pane/whatever_stupid_terminology horizontally (hsplit) Opens in the top pane tail -f foo Opens in the bottom pane tail ...
2
votes
0answers
26 views

Tmux log output [duplicate]

Im looking for a solution to an issue regarding tmux. One of my scripts ns2server stopped working recently when running start (using tmux) but not in debug mode (not using tmux). I found that using ...
1
vote
1answer
77 views

tmux new pane has home directory as default instead of previous directory

When I press Ctrl+" (create a new pane) while in a pane, which has the PWD /tmp for example, the new pane starts as my home folder ~. I looked at http://unix.stackexchange.com/a/109255/72471 and it ...
2
votes
1answer
198 views

In tmux session, cannot connect to X server after ssh'ing

At work, I have a desktop with a monitor and a few running tmux sessions. At home, I frequently ssh into that desktop and enter my running tmux sessions. When I ssh from home, I do not want to use ...
3
votes
1answer
119 views

Is there a way to find out why tmux crashed

I am trying to shift from using VNC to tmux. My tmux keeps crashing at least once in a week and I am clueless why this happens. VNC rarely crashed and this weekly crash is a strong detrimental for me ...
7
votes
3answers
384 views

How can I have my .bashrc only invoke TMUX if it exists on my system?

I use tmux on most boxes, but not all. I have the following line in my .bashrc file: [ -z "$TMUX" ] && export TERM=xterm-256color && exec tmux which invoke tmux if it exists. I ...
8
votes
2answers
411 views

How do you hide a pane?

I have 3 panes in my tmux window: -------------------------- | | 2 | | | | | 1 |----------| | | 3 | | | | ...
2
votes
2answers
428 views

Tmux Split Panes in the same window

I am new to using tmux in scripting and I am attempting to manipulate it so when I run a script I can have multiple screens attached and split in my Putty session, and also have it color coded and ...
1
vote
0answers
186 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
1
vote
1answer
69 views

tmux hightlight colour setting

In tmux, the default highlight setting is a yellow background -- at least on my version and machine. This is when using the mouse on X11 but is the same with the console selection. I cannot find the ...
6
votes
1answer
404 views

How do I change the color of the pane dividing lines in tmux?

I've used the following command to change the color of the status bar at the bottom of the screen: set -g status-bg colour244 But I don't know how to change the color of the lines that divide ...
4
votes
1answer
25 views

How do I re-map the changing pane keys in tmux?

I want Prefix + Up,Down,Left,Right to be mapped to Prefix + Ctrlh, Ctrlj, Ctrlk,Ctrll. I tried: bind-key C-h Left bind-key C-j Down bind-key C-k Up bind-key C-l Right But it didn't really work: ...
2
votes
1answer
59 views

Why does tmux fail to “scroll” when entering a command that exceeds one line? (OSX Terminal.app)

When I use tmux and enter a command that exceeds the line, it fails to redraw the previous line. It simply clears the current line and I can't see what I just wrote. It does only redraw the first ...
3
votes
1answer
30 views

tmux session_name count

Let's say that I created four new tmux sessions (1, 2, 3, and 4). Now, I kill every window in session 2. tmux list-session only show that 1, 3, and 4 are active. If I create a new tmux session, it is ...
4
votes
1answer
247 views

What are valid keys for tmux?

I was trying to learn how to use the bind-key [-cnr] [-t key-table] key command [arguments] better, but was having some trouble figuring out what "valid keys" are for bind-key command. I tried doing ...
3
votes
1answer
1k views

zsh: set TERM=screen-256color in tmux, but xterm-256color without tmux

I need my $TERM to be xterm-256color outside of tmux (in "plain" terminal with zsh), but screen-256color inside tmux. First I tried: add export TERM='xterm-256color' to my ~/.zshrc. add set -g ...
0
votes
1answer
69 views

tmux: ncurses apps are displayed wrong (with garbage and so on) [duplicate]

I have ncurses apps (say, aptitude) working nice in plain xterm (or gnome-terminal, or any other terminal I've tried), but if I run it inside tmux session, screen isn't properly refreshed while I do ...
0
votes
0answers
20 views

tmux protocol mismatch with no upgrade [duplicate]

[This question should not be a duplicate of the one asked already. In this case, there has been no upgrades of any OS or tmux version anywhere. If this is going to be marked as duplicate still, please ...
3
votes
0answers
68 views

Is there a more elegant way to unlink two tmux clients sharing a session from inside tmux?

This is almost a code-review question, but very *nixy and more about configuration than code. For years since I switched to tmux from screen I've had a couple of nagging issues that I could not make ...
3
votes
1answer
51 views

Interrupting very long output in tmux

In a (gnome) terminal, if I cat a file which turns out to be much too long, I can always press Ctrl-c to interrupt. However, in tmux, when the same happens, it takes long for the signal produced by ...
3
votes
1answer
108 views

Make tmux block until program completes

I am impressed by tmux's remote control features: tmux new-window -t p12346 'echo foo;sleep 10' This creates a new window in the session named p12346 and does not print anything on the screen. ...
0
votes
2answers
44 views

How to switch directly to a pane in Tmux?

I'd like to switch directly to a pane in Tmux, by pane #. How can I do this? I know how to cycle between panes, and move to panes that are beside the current pane. I'd like to be able to run the ...
3
votes
2answers
93 views

Finding out whether current alias/function/script is running inside Tmux - with a twist

NB: Yes, I've read How can I tell if I'm in a tmux session from a bash script? How can I find out whether I am running inside a Tmux session from my shell or shell script or shell function or ...
0
votes
0answers
54 views

Disable mouse scrolling in vim with tmux

I'm experiencing the same problem as in this Q&A titled: disabling mouse support in vim in a gnome-terminal environment, where it was found (in the comments for the top answer) the problem wasn't ...
1
vote
2answers
927 views

Use system clipboard in vi-copy mode in tmux

I'm running tmux 1.6 and I'm trying to configure it to use vi-style keybindings as well as use the system clipboard when copying in interactive mode: set-window-option -g mode-keys vi bind-key -t ...
3
votes
1answer
745 views

How to quickly send commands to nested tmux sessions?

I have the following in my .tmux.conf set -g prefix M-j bind-key j send-prefix I need to press (Atl+J) + (J) + bound-key to send something to the nested tmux session. I feel it is rather slow. Is ...
3
votes
0answers
360 views

tmux exits immediately after starting

I'm trying to start with Tmux but failing to even run it. Immediately after starting it exits. looked like It's the same as this question It happens both without a .tmux.conf and (following some ...
0
votes
1answer
55 views

How can I get a tmux session menu from outside a tmux session?

I'm trying to build a wrapper for tmux that presents me with a menu of all available sessions instead of creating a new one. However the man page explicitly says that this is not possible (excerpt ...
2
votes
2answers
225 views

Tmux config not retaining PWD on new-window or window split

So I'm trying to update my .tmux.conf file to reflect the change for -c in new-window. I've added this to my conf and it's not working unfortunately. My new windows and panes always start in ~/: # ...
1
vote
2answers
160 views

How to colorize last window in status line?

I'd like to make the last selected window (the one to which :last-window takes you) to stand out visually. By default it's just marked with an inconspicuous - after the name. Is there a way to set ...
2
votes
2answers
268 views

Getting 256 colors to work in terminal multiplexer

tmux I followed Getting 256 colors to work in tmux: I have alias tmux='TERM=xterm-256color tmux' in ~/.bashrc and also set-option -g default-terminal "screen-256color" in ~/.tmux.conf In konsole: ...