tmux is terminal multiplexer software, allowing users to work with terminals using multiple windows and panes, which can be created, removed, attached, and reattached as needed.

learn more… | top users | synonyms

0
votes
0answers
17 views

How to kill tmux session and move to another if there is session available?

By now, I have to use different command depend on how many sessions available. When there is only one session if I use command for the other, it would raise this output due to no session to move next. ...
0
votes
0answers
23 views

Remote tmux does not respond for 30-45 seconds after unlocking osx

I often attach to a tmux session on a remote machine, for the usual reasons (session life, reattaching across different networks). But sometimes, when I unlock my machine, this tmux session does not ...
0
votes
0answers
26 views

How can I switch tmux windows from within a script?

In a script, I'd like to switch tmux windows and have everything after that point happen in the new window, until I switch again. For instance, I'd like (something like) this to work just as a naïve ...
38
votes
4answers
36k views

selecting text tmux copy-mode

I run tmux in VI mode. VI-like navigation in copy-mode works fine. However, I can't select any text. Neither v nor V doesn't switch to VI-like text selecting mode. What am I missing? By the way, is ...
0
votes
0answers
22 views

tmux: what is the mode I get periodically locked in when (attempting) pressing Ctrl-B Z

I am quite new to tmux (but familarized with the basics). Regularly, I end up in a mode, I do not understand, and I do not know how to leave anymore. This happens sometimes when having multiple panes ...
0
votes
0answers
23 views

After losing connection to ssh with tmux, random characters get sent with mouse `27M64;85;27M64;8`

If I lose my ssh connection, and I have tmux running on said ssh'd login terminal, then sometimes, I get a weird behavior when I return to my local shell. Mouse behavior sends weird sequences to my ...
0
votes
0answers
24 views

How can I get tmux to tell me its prefix (in a script)?

In a script I want to be able to display the currently configured tmux prefix to the user, but the closest thing I can find tmux send-prefix doesn't seem willing to give me a simple string I can ...
0
votes
1answer
164 views

Solarized in Konsole + tmux + vim

Solarized color scheme works fine when using Konsole + vim, but I can't figure out how to properly configure my computer for a Konsole + tmux +vim usage (please see screenshots on the links). Below, ...
4
votes
3answers
3k views

Mouse scrolling in vim through tmux, how to configure?

I'm using a combination of PuTTY, tmux and vim. If I just open an SSH connection with PuTTY and then open vim, mouse scrolling works as expected. But if I open tmux and then open vim inside tmux the ...
0
votes
0answers
74 views

Tmux ssh to current server

I use tmux to keep multiple connections to different servers separate and organized. I find I often split windows if I need to keep an eye on more than one thing, but I always close the split, because ...
0
votes
0answers
71 views

Erroneous Space in Powerline Bash, in Tmux

When running powerline in bash, in tmux, I see an unnaturally large space after the prompt. I thought it might be a font issue, but the shell is handling the font ok, when not in tmux. Any tips on ...
6
votes
1answer
4k views

tmux: enable mouse scrolling in vim instead of history buffer

I have just started using tmux 1.8 recently, after working with screen for a while. After reading things here and there on the internet, I came up with following ~/.tmux.conf However when I open vim ...
1
vote
1answer
153 views

gitk not working inside of tmux

I have a weird issue where gitk does not run when I use it inside of a tmux session. If I run gitk from tmux, I get: Error in startup script: 58:102: execution error: An error of type -10810 has ...
1
vote
1answer
192 views

Key bindings broken in tmux 2.1

I have the following lines in my tmux.conf: bind C-n next-window bind C-p previous-window Then I have the following key mappings in ITerm2, which send send C-f C-p and C-f C-n to the terminal (my ...
0
votes
0answers
25 views

Bind rename tmux window to a key

I am able to change the window name with the set-option set-titles-string foo command, and I would like to bind it to a key. I have this line in my .tmux.conf: bind-key r command-prompt -p "Rename ...
0
votes
2answers
60 views

Tmux: bad key binding error

$ tmux source-file ~/.tmux.conf bad key: Tab-Space unknown key: Tab-Space What's up? I checked the man page. Tab and Space are valid. Why doesn't this combination work when C-b works?
1
vote
2answers
275 views

Starting gnome-terminal and automatically run specific process (roscore)

I'm typing $ roscore and It starts succesfuly. $ run_roscore.sh is succesfully too. run_roscore.sh: #!/bin/bash /opt/ros/indigo/bin/roscore exec $SHELL But I've adding shortcut to cairo-dock(...
0
votes
1answer
79 views

Make less use alternate screen, but only if entire file won't fit on one screen

I'd like less to quit immediately if the entire file can be displayed within one screen. For this, I'd use the -F option: -F or --quit-if-one-screen Causes less to automatically exit if the ...
30
votes
2answers
9k 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 ...
0
votes
2answers
110 views

tmux create panes programatically

I want to create tmux panes programatically. e.g. I have a list of commands to execute, and I'll create a shell script that will invoke a tmux command along with the commands to execute in each pane, ...
0
votes
0answers
33 views

Terminal progress bar broken in tmux

I recently switched to tmux. Most things work as expected but I now have a very annoying behavior of progress bars. Instead of replacing the 'previous' bar now there is one bar after the other ...
0
votes
0answers
32 views

tmux + SSH client integration on Windows?

Are there any Windows SSH clients that support native tmux integration similar to iTerm2 on Mac OS X? E.g., iTerm2 can detect multiple tmux panes and displays them as separate iTerm2 tabs. I would ...
1
vote
1answer
335 views

How to update DBUS_SESSION_BUS_ADDRESS in tmux when that address changes?

I have noticed, that I can’t run steam in a tmux pane: it gave me error Error: Unable to open a connection to X. Check your DISPLAY environment variable and make sure that you have enabled X. If ...
-1
votes
1answer
50 views

How to use bash script with tmux terminal?

I use tmux with shortcuts provided by the program. How can i use my shell script for performing several options e.g:check if session exists etc.
18
votes
4answers
11k 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
0answers
46 views

tmux balance 8 panes that were created from both horizontal and vertical splits

I have create 6 panes and resized in a tiled way by Ctrl + B, Alt + 5. |0|1| |2|3| |4|5| Then I created another 2 panes, and would like them to show up evenly |0|1| |2|3| |4|5| |6|7| However, ...
8
votes
2answers
4k views

Is it possible to change the background color of the tmux pane or window?

I would like different panes to appear in different background colors in my tmux session. Is this possible?
1
vote
1answer
50 views

Tmux not working in Xterm on Debian Stable

I'm trying to use tmux on my computer and it runs perfectly as root, but I'd rather run it under my own account. When I run it with my account, I get a variety of error messages that include "Cannot ...
12
votes
7answers
7k views

Using tmux with both emacs and vim

What is the best default key binding for tmux and why if one sometimes uses emacs and sometimes uses vim (on Linux Mint 12)? Ctrl-b is OK, but that conflicts a bit with the bash shell and emacs.
0
votes
0answers
18 views

Can I change the “current window” in a tmux session without opening the client?

I am writing a script to switch to a tmux window which is something like: wmctrl -a "tmux" tmux select-window -t window:pane #Calculated from dmenu selection The problem with this is that, it ...
3
votes
3answers
673 views

Sending Commands to tmux Running in tmux

I'm using tmux to manage my windows, etc, and one of the things I do is SSH to a remote server and connect to a tmux session running there. Once there, however, I cannot sent C-b through to that tmux ...
1
vote
0answers
60 views

tmux + iterm2 integration: can't maximize pane

Is there a way to do this? By this, I mean if you have split panes, you were able to maximize a pane with iterm2 with shift + command + enter. I believe it's possible to do this in tmux as well based ...
0
votes
0answers
18 views

Tmux - select window by name

I have multiple sessions with multiple renamed windows. I would like to execute something like tmux select-window [window-name] and go to that window. The select logic can be "fuzzy". Does an ...
0
votes
0answers
160 views

Activating tmux Control Mode without resizing session

When using tmux (v2.0) Control Mode from a second Terminal window, the existing session is resized. This is frustrating when the second window is very small. To reproduce, with a tmux session named ...
26
votes
2answers
12k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
2
votes
1answer
30 views

Tmux: How to join 4 sessions into 4 horizontally panes

If I have four sessions called PP1, PP2, PP3, and PP4, how would I join them so that they would look something like this: ----------------- | | | | | |PP1|PP2|PP3|PP4| | | | | | ------...
0
votes
3answers
64 views

Jumping to previous prompt in terminal

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
0
votes
0answers
41 views

Tmux reset scrollback on keypress

When you've scrolled back within tmux (using the mouse via mode-mouse), is there a way to make tmux reset the scroll when you press a key (unless that key is a tmux command)? This seems to be ...
3
votes
1answer
760 views

Why does ‘tmux’ create new windows as login shells by default?

When you start a new session in tmux or create a new window inside a running session, its default behaviour is to run a shell (ex.: bash) as a login shell. I understand that a login shell is intended ...
4
votes
2answers
542 views

Proper Format for Byobu's windows.tmux?

In Byobu 5.17 (using tmux 1.6), how ought I format the windows.tmux file? I've poked around a bit, but have been unable to find a proper answer. For reference, here's the screen version of what I ...
0
votes
1answer
407 views

Cygwin+tmux over ssh problems: open terminal failed: not a terminal

I can't get tmux to work inside an SSH session to a Windows machine with Cygwin: USER@HOST ~ $ tmux open terminal failed: not a terminal GNU/Screen is working fine. I understand tmux is a bit ...
0
votes
1answer
605 views

How to reset the terminal emulator from tmux?

I want to "clear" the tmux pane completely. When I do something like bind-key C send-keys "clear && tmux clear-history" \; send-keys "Enter" suggested in http://stackoverflow.com/...
0
votes
1answer
82 views

Is there a limit for the number of consoles in Ubuntu?

I have a VPS with Ubuntu 12.04 server. I have two tmux sessions with 3 and 4 windows, with bash running in each. Now, I want to create one more session. The first window in that session is ok. If I ...
0
votes
0answers
76 views

how to keep the window's name fixed in tmux after I rename it with zsh

I use zsh with oh-my-zsh and tmux 1.8.1 I want the windows' name changed with the changing of my dir,but fixed after I first rename it. It is fine when I use shell, but the windows' name will still ...
2
votes
0answers
249 views

tmux: Page Up/Down in Cygwin

Unfortunately it seems like the normal C-b > PgUp or C-b > ctrl+arrows aren't working; instead, I'm just seeing the characters 5~ be printed whenever I C-b and then try to use PgUp. Even mouse mode ...
1
vote
1answer
154 views

How to source a script in every panes and windows of a specific tmux session

I have a shell script specific for a project which create environment variables, aliases and run some commands. I want to create a tmux session for this project which will source my shell script ...
4
votes
6answers
6k views

Messed up keys in vim when running inside tmux

I have been playing with tmux and I'm loving it. However, there's an annoying issue when running vim inside it. Somehow the arrow keys get remapped, but only on certain times, like when firing up ...
0
votes
3answers
2k views

TMUX key bindings

I have a problem with TMUX key bindings. When I'm working on a terminal pane, if I press ctrl+pgup, it should scroll the screen one page up, as a normal terminal, but it doesn't. Also, while using ...
0
votes
0answers
36 views

tmux copy-mode page up with M-v on OSX

For some reason, C-v pages down no problem. However, when I hit Alt-v, nothing happens. Here's my config: # Make C-a escape unbind C-b set -g prefix C-a bind C-a send-prefix # Make it like emacs ...
1
vote
0answers
170 views

In tmux, is it possible to list all panes in all windows?

Say, I got two windows, Window 1 contains 2 pane (1, 2), Window 2 contains 3 panes(1,2,3), and I'm in pane 1 in Window 1, and I want to jump directly into the pane 2 in Window 2, PREFIX w which is ...