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
6 views

tmux copy-mode with vi keys bind C-R and C-S like in emacs mode

When I've used C-b [ to enter copy mode, I really like the vi keybindings for navigation but not for searching. Is there a way to bind C-r to ? and C-s to / in vi-copy mode quickly? I've seen some ...
1
vote
2answers
456 views

tmux on a Mac: how can I move the divider lines?

On my Linux system I use prefix (redefined as Ctrl+a for me) that Ctrl+arrow to move the divider line but this isn't working on my new Mac. Any idea how I can move the divider lines?
0
votes
0answers
5 views

How do I setup a tmux session to always use a particular scl?

I'd like to be able to setup a tmux session that more or less transparently runs everything in a particular scl environment, specifically scl enable python27 .... By transparently, I mean that when I ...
0
votes
0answers
6 views

Tmux mouse selection resets scrolling position

When I scroll in a pane, my current shell prompt is not on the screen anymore, then I select anything (for example when I am explaining to a colleague something, just to point a line), the result will ...
1
vote
0answers
7 views

OSX smooth scrolling in tmux

I'm SSH'ing into a linux box using iTerm2. On that box I run tmux 1.6. I have enabled mouse mode: set -g mode-mouse on This works fine, and I can scroll when using tail, but it's not the same ...
3
votes
1answer
44 views

tmux - uppercase “M” at the right of window name

For some reason, occasionally, an uppercase M appears at the right side of the window name, so the window name looks like this: 1:bash*M I'm pretty sure is because I'm pressing some combination that ...
1
vote
1answer
19 views

tmux configuration stanzas based on Tmux version

This question is loosely related to this one. So I am using a range of Tmux versions between 1.5 and 2.2 on various operating systems (and Linux distros). My ~/.tmux.conf which had been tailored to ...
2
votes
2answers
2k views

watching output of “ps aux | grep blah” in tmux will not work?

I am trying to run this - watch "ps aux | grep myShittyProcess" in a tmux session. This process myShittyProcess was also started in a tmux session. The ps aux works without watch command. But as ...
1
vote
0answers
10 views

tmux: get names of panes, each current directory and history

my tmux session is a bit broken, by which I mean that tmux ls returns an error like error connecting to /private/var/folders/d0/xbg08_x12lddw3dkht5w462c0000gn/T/tmux-501/default (No such file or ...
5
votes
2answers
4k views

Option key does not work as Meta in Tmux

I am using Mac OSX Lion. I have checked "Use Option key as Meta" in Terminal preferences. Although the Option key seems to work fine as Meta in Bash, when I use it in Tmux (over SSH) it does not work ...
1
vote
1answer
10 views

How to run aliases under tmux without root privilege

Under terminal multiplexer tmux I am unable to use alias as a normal user. alias l='ls -CF' alias la='ls -A' alias ll='ls -alF' alias ls='ls --color=auto' For alias of alias l I have to type ls ...
1
vote
1answer
32 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 ...
10
votes
7answers
14k 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. ...
0
votes
2answers
21 views

Pass variable to another pane

I'm working with tmux and I'd like to pass some information from one pane to another. For example in first pane i've got the folder by pwd command and instead of copypast to another pane I want to ...
2
votes
3answers
504 views

Create custom command in tmux

I know how to bind a key to a command in tmux, but I want to create a custom command (that you can type with prefix key + colon). In this custom command, I want to execute a couple of other commands. ...
1
vote
2answers
206 views

Zsh autocomplete function with sed

I'm struggling to write an ZSH autocomplete function. My goal is to autocomplete ta's and tk's first argument with the projects listed in tmux list-sessions and tmuxinator list. Here's what I have so ...
0
votes
0answers
11 views

How do I send, through hotkey, a SIGINT (CTRL+c) to a process running inside tmux?

When I open tmux and start a long running process without output, how do I kill it with a hotkey Ctrl+c? On a normal zsh shell when I press Ctrl+c the process receives a INT signal and (hopefully) ...
0
votes
0answers
13 views

tmux bind-key breaks enter key functionality

I'm new to tmux. With the following set in ~/.tmux.conf, I can switch panes by specified keys in each line without the prefix, which is as I expect. bind-key -n C-j select-pane -L bind-key -n C-m ...
1
vote
0answers
66 views

Can tmux display pretty pane corners?

I'm in the process of picking up tmux, and I'm sure I'll get used to it, but this pointy edge is bothersome. Is there a way to make the corner flush, like this (fixed with gimp)? I know that the ...
0
votes
1answer
17 views

What is the right way to launch tmux in Terminal.app on OS X

I have ... if [ "$TMUX" = "" ]; then tmux; fi ... in my .zshrc which works great for ssh connections. However, I have trouble with Terminal.app. When I type exit, tmux closes, but I am left in an ...
0
votes
0answers
8 views

Tmux incorrectly interpreting aixterm escape sequences

It has just occurred to me that tmux misinterprets aixterm escape sequences (in my PS1 prompt, I use the bold attribute for bolder text and aixterm sequences for brighter colors), if my TERM variable ...
57
votes
17answers
37k views

What's the least conflicting prefix/escape sequence for screen or tmux?

Screen goes with Ctrl+A. tmux on the other hand—as developed within screen—uses Ctrl+B. Both keystrokes, however, are also used in editors, shells, etc. Thus choosing either one degrades ...
1
vote
1answer
46 views

How can I make a searchable shortcuts cheat sheet?

So, just like most people it happens that my memory for shortcuts and commands is kind of bad until it gets into muscle memory, but since it is just painful to have a fancy configuration in vim + tmux ...
33
votes
2answers
6k 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?
598
votes
8answers
245k views

How do I scroll in tmux?

I just started using tmux, and I really like it, but I need to be able to scroll within the buffers/panes/windows I have open. I don't care if it works with the mouse or not. When I search the tmux ...
0
votes
1answer
31 views

How can I move my current session from GNU screen to tmux?

My IRC client, irssi, is currently active inside a GNU screen session. In hindsight, I wish that I'd have used tmux instead of GNU screen. How can I migrate the active process (or session) from GNU ...
1
vote
2answers
249 views

Tmux: Automatically run a Git command whenever I switch to a pane?

I would like to have a tmux pane where everytime I switch to it runs a command like git diff so that I automatically see the new version of the output. Can this be done?
68
votes
3answers
22k views

Move pane to a new window in tmux

I know that it's possible in tmux to join a window as a pane, but is it possible to move a pane to it's own window (tab)? I tried searching it up the man page but couldn't find it. I guess it is ...
1
vote
0answers
34 views

Change mintty title according active tmux window (cygwin)

How can I change mintty terminal title to show title of active tmux window? For example: I would like in this case title to be active tmux window - ncmpcpp or even better if possible title ...
0
votes
0answers
14 views

tmux new window with current_pane_path always goes to root

I have the following config bind-key -n M-c new-window -c "#{pane_current_path}" \; Now, when i invoke this command, it creates a new window but it goes to root director \. I am running tmux ...
0
votes
0answers
10 views

tmux how to send keys after the creation of a new session

Messing around with tmux, I've (more or less) understood how to use config files (either .tmux.conf or custom ones), and the usage of source-file command. So I edited .tmux.conf like this: new -s ...
12
votes
2answers
2k views

tmux — any way to enable scrolling, but not selection?

I like that when mode-mouse is on in tmux, I can scroll through the buffer, but I don't like that I can't copy stuff to my OS clipboard by selecting it (as when tmux is disabled). Question: Is there ...
0
votes
0answers
25 views

tmux / urxvt: Odd behavior when selecting text with mouse

I've just recently begun experimenting with urxvt as a terminal emulator rather than xterm. I'm a heavy tmux user, so having both work seamlessly together is a must. I've noticed that when running ...
206
votes
12answers
64k views

How do I reorder tmux windows?

In screen, I can just type C-a :number 0 to move a window to the top of the window list and push all the other windows down one. What's the equivalent command sequence for tmux? I looked at the man ...
20
votes
2answers
19k views

Run or send a command to a tmux pane in a running tmux session

I want to write a shell script which will attach to a named tmux session, select a window (or pane) in that session and run a command in that selected window (or pane). How do I do this from a bash ...
42
votes
5answers
16k views

tmux disregarding the configuration file

I just installed tmux on Ubuntu 10.04 and tried to remap the prefix key to C-a by creating the file ~/.tmux.conf with these lines: set-option -g prefix C-a unbind-key C-b When starting tmux, both ...
0
votes
0answers
12 views

How to list last commands run in tmux's current session's panes?

I want to write a script with a name tmux-gen-curr-session which will produce a script that will open panes and run last commands of each panes in current session. Is there a easy way to get last ...
0
votes
0answers
9 views

Can tmux highlight (change color) on control key (send-prefix) event?

Is it possible to highlight the status line or somehow visualize that I'm in command mode. Could I create an extra binding action for c-b? Any idea?
13
votes
3answers
3k views

How can I prevent tmux exiting with Ctrl-d?

I use tmux on my server and recently I found to my cost that ctrl-d will exit tmux and lose all the session information, my intention was to simply end the ssh session but failed to notice I was still ...
1
vote
1answer
12 views

zsh autocomplete results from function

I've been searching and searching and unable to find a clear way to do this: Slightly contrived example to hide details: Say I want to autocomplete tmux session names with a command that will open ...
0
votes
1answer
14 views

Tab glitch with tmux in archlinux

Bug difficult to explain, as it can have extremely random effects. But the idea is : when I open a new tab in my terminal using tmux (in tig, vim or cmus for exemple), the text always gets extremely ...
45
votes
3answers
7k views

Slight delay when switching modes in vim using tmux or screen

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After ...
1
vote
0answers
62 views

xterm translations: sending multiple keys

I'd like to utilize the multimedia keys on my keyboard in my xterm/tmux. I'd like to map the XF86Launch8 to the keys C-a F1 (ctrl-a being the tmux prefix key, the press F1, which is mapped in tmux to ...
3
votes
1answer
856 views

tmux: trying to bind utf8 key

I'm using tmux 1.6 with konsole on Fedora 17 i686. I have an azerty keyboard (with accentued chars), and I want ton bind 'ù' key. I made the following ~/.tmux.conf: setw -g utf8 on bind-key ù ...
1
vote
1answer
227 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 ...
2
votes
2answers
2k views

Adding Git repo and branch to Tmux status line

I have found a Tmux configuration file that shows how to add the Git branch to the Tmux status line, however It just shows [[ branch ]] no matter if I am in a Git repo or not. I am not sure if this ...
1
vote
2answers
922 views

tmux unbind arrow keys

Having switched to vim-style pane navigation in tmux with the following: bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R How can I turn off the original key ...
0
votes
0answers
21 views

Show pane names vertically in tmux

I have created a bunch (more than 10) named window panes that are used for integrating with my projects. The problem is that the horizontal status bar of tmux is not long enough to fill them all so I ...
25
votes
2answers
6k views

tmux and screen-256 TERM not supported on remote hosts

I have set up my tmux to use screen-256colors and it works great with vim. However, when I ssh to a remote host from within tmux, screen-256colors isn't recognized, so I'm getting errors like this: ...
3
votes
2answers
36 views

How to view logs online during heavy usage with screen, tmux or Byobu?

Normally I use tail -F, but on heavy usage it is getting irresponsible and unreadable. On ssh I also use buyobu to type password only once. But when any of screens become irresponsible then all ...