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

1
vote
1answer
38 views

tmux mouse passthrough mode?

How do you make mouse-wheel scrolling in tmux work with programs such as less and man? It will work properly with emacs and vi/vim in xterm mouse mode, but less doesn't. EDIT Is there a way to have ...
1
vote
1answer
28 views

Automatically kill tmux session on session end?

I have the following snippet in my .bashrc which starts tmux whenever I'm at the command line: # Start inside tmux if [[ $(command -v tmux) ]] && [[ -z $TMUX ]] && [[ $TERM != ...
0
votes
1answer
45 views

tmux: Configure center of status line

I am using tmux on different servers, and like to show the hostname of the current host in a prominent position in the top center. On the man page, I only found options to set the right- and ...
1
vote
0answers
22 views

Multi-page output :: text select with tmux over ssh

I have a local terminal within tmux. Now I connect to a remote server via SSH and run some command piped to less. With tmux I can easily select part or the entire screen, however I can not select text ...
0
votes
0answers
36 views

Save a command output to tmux buffer

Is there a way to place output of a command to tmux buffer. I know I can switch to copy mode, select and copy. However, I would prefer a command-line method. For example, I have a command find $PWD ...
0
votes
2answers
21 views

how to fix Tab key in iTerm2+tmux on OSX

when I want to press tab, I need press tab two times in tumx on OSX, how to fix it?
-1
votes
1answer
14 views

Why is Escape key not working in tmux?

If I hit Escape to leave Alsamixer, or to enter vi-mode in zsh, nothing happens. How can I get Escape working in tmux?
2
votes
0answers
35 views

How to save multiple sessions in tmux?

I use tmux-plugins/tmux-resurrect to restore a tmux session. Albeit, I can only save one session. Is it possible to save multiple sessions in tmux with this plugin?
0
votes
0answers
22 views

Why Does tmux Append Dollar Signs to Truncated Lines When Scrolling?

I'm seeing some strange behavior out of tmux in Fedora 22. This behavior can be reproduced as follows: Print output that requires scrolling to view (I.E. printf "%0.shello" {1..10000}) Enter ...
0
votes
1answer
40 views

tmux exits with [exited] on Ubuntu 14.04

The machine is a VPS that I SSH into. The problem started when I installed Prezto tmux -v also exits with [exited] sudo tmux doesn't work either I don't have a .tmux.conf I seem to have a ...
0
votes
0answers
15 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
21 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
1answer
247 views

Tmux 1.8: How can I use scrolling and mouse-select-pane at the same time?

If I set mouse-select-pane, I am able to select pane with mouse, but I can no longer scroll with my mouse within program like less and man like before. How to solve this? I am using ubuntu
0
votes
0answers
25 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 ...
0
votes
0answers
20 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
21 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
22 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
126 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, ...
0
votes
0answers
56 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
59 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 ...
0
votes
0answers
22 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
55 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
206 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 ...
0
votes
1answer
69 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 ...
1
vote
1answer
185 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
2answers
120 views

Pass mouse events through tmux

I have noticed that scrolling in tmux is a hazzle and was wondering if it was possible to have tmux pass them along to the application or terminal. I may be understanding things wrong here but I have ...
0
votes
0answers
29 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
31 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 ...
0
votes
1answer
47 views

Cannot bind prefix-less command exclusively to uppercase letter (C-H vs. C-h)

I have the following prefix-less key bindings in my tmux.conf. bind -n C-J swap-window -t -1 bind -n C-K swap-window -t +1 bind -n C-H select-window -p bind -n C-L select-window -n These bindings ...
0
votes
0answers
37 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, ...
-1
votes
1answer
47 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.
1
vote
1answer
47 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 ...
1
vote
1answer
250 views

In iTerm2 how can I automatically connect to an existing tmux session using -CC?

I've found using iTerm2 and tmux -CC to be quite helpful tying the existing iTerm UI with tmux windows & panes. I'm trying to figure out how to automatically attach to an existing session at ...
0
votes
0answers
17 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 ...
1
vote
2answers
171 views

Tmux option window-status-activity-style refuses to override window-status-format

I'm trying to have tmux draw my attention to background windows when they have new activity in them, but I'm having trouble with the various -activity- options. It seems as though any setting I give ...
1
vote
1answer
312 views

tmux 2.0 on OSX: ~/.tmux.conf doesn't work

I've installed tmux 2.0 from homebrew on OSX 10.10.5 By default it does not create a config, but I've researched that there should be ~/.tmux.conf file so I've created it myself I'm using iTerm2. The ...
1
vote
0answers
51 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
16 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
137 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 ...
0
votes
0answers
35 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 ...
2
votes
1answer
27 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
1answer
489 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 ...
3
votes
1answer
570 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 ...
0
votes
1answer
78 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
66 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 ...
1
vote
0answers
159 views

sz and rz fail to transform files in tmux?

I use xshell to SSH to a Linux remote server—running Red Hat Enterprise Linux AS release 4 (Nahant Update 3)—without root. There aren’t any problems to use sz, rz to transform my files until I start ...
0
votes
1answer
377 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
3answers
59 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 ...
1
vote
1answer
119 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 ...
0
votes
0answers
33 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 ...