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.

learn more… | top users | synonyms

0
votes
2answers
13 views

Can I fix a broken tmux session?

When my tmux session gets messed up, e.g., after I accidentally cat a binary file, is there a way to fix it? reset doesn't help much when I'm inside of a tmux session.
0
votes
0answers
13 views

tmux disregarding the configuration file even when no sessions exist

This question is similar to this question, but in this case running "killall tmux" or "tmux kill-server" is not effective. Running "tmux list-sessions" returns "failed to connect to server". Running ...
1
vote
2answers
13 views

Creating a “kill current session” shortcut in Tmux

Is it possible to create a shortcut in Tmux which would kill current session? Typing "kill-session -t mysession" is not very convenient I imagine something like bind X kill-session -t ...
0
votes
1answer
18 views

Configuring function keys in PuTTY for both Vim and Midnight Commander under tmux?

First off, I'm aware that I can use Alt+1 (through 9 and 0) to synthesize the respective function keys (F1 through F10) in Midnight Commander. It has helped me many times, but by default I still press ...
2
votes
0answers
39 views

Bug with resizing panes in tmux when using ZSH

I am using Tmux with ZSH and have a problem when trying to resize panels. I am currently using these bindings to resize panels as I work: unbind-key M-j ; bind-key -n M-j resize-pane -D 1 ...
0
votes
0answers
20 views

In mc within tmux ctrl-o doesn't work

When I run mc within tmux: $ tmux $ mc 'Ctrl-o' in mc desn't work properly: mc panes disappear, but the shell command prompt doesn't appear, and pressing any key causes mc panes appear again. When ...
1
vote
1answer
61 views

Some shift+arrows not working in tmux?

I am attempting customize tmux so that Ctrl-Arrows are used for pane selection Shift-Arrows are used for pane resizing Alt-Arrows (left, right) are used for window selection ... all are working ...
1
vote
1answer
17 views

tmux - get pwd of another pane in a bash script?

Is there anyway to find out information about the current working directory of any pane from within a tmux session? I'd like to write a bash script that changes the directory of the current pane to ...
0
votes
1answer
17 views

In tmux, is there something similar to `monitor-activity` but for a single pane?

I use bind m setw monitor-activity so that I can easily toggle whether or not I want visual updates about when a window has updated. However, sometimes I'll have a window with panes which have updates ...
0
votes
0answers
11 views

Scrolling in tmux over SSH (PuTTY) [duplicate]

I'm SSH'ing into my RaspPi (Raspbian) with PuTTY and I want to user tmux in order not to worry about a connection ending while I'm installing something. My Problem is, that when I call tmux from a ...
1
vote
1answer
12 views

Tmux detaches from one side when force to adjust redimension

Whenever I have a tmux's session opened at the same time in more than one terminal with different sizes it auto adjusts its size to the smaller one. I could fix that by doing C-b and then :attach -d ...
0
votes
0answers
7 views

Can I change the tmux prefix to double backslashes?

If so, how do you go about it? set-option -g prefix "\\" doesn't seem work. Is this a bad idea?
0
votes
0answers
18 views

How to select pane in tmux via mouse over

As the title suggests, I want to select a pane in tmux by just doing mouse over on the pane. I don't want remove the need to click the pane to select it. Is that possible?
0
votes
0answers
29 views

Move tmux status bar to the very bottom of my screen

Is it possible to display the tmux status-bar at the very bottom of my monitor and not have the 1cm gap between it and the bottom of my screen? I looked online and could only see the queries ...
0
votes
1answer
9 views

Can I rename tmux tabs to hostnames and commands?

I'd like my tmux tabs to display the hostname of the machine (the guest machine if I'm SSHed) and the currently running command on that machine. Is that possible? Thus, if I have machines named "Home" ...
0
votes
0answers
3 views

How to quickly select paths or words from program output?

I have a program that outputs file paths and certain words that I would like to quickly copy and paste (e.g. ps). Is it possible to bind a key so that tmux will search up and select next delimited ...
1
vote
1answer
24 views

How to make zsh always show environment variable name instead of the path?

I have an environment variable set to my projects folder like this: PROJ=$HOME/projects When I want to open a project folder i just type PROJ/project_name and the shell opens the directory and my ...
0
votes
0answers
14 views

Execute commnad after server started in other pane with tmuxifier or tmux

I have a window with several panes where I execute commands to start the servers. I want to be able to execute commands after a server is running. To run commands in the same pane is not possible ...
0
votes
1answer
29 views

Change tmux window list color

I want to change the color of window list selection highlight (yellow on the screenshot), but can't find the proper parameter. Anyone knows how to do it in .tmux.conf? My current configuration.
0
votes
0answers
19 views

Session name background in tmux changes to red

My tmux status bar looks like this: Every now and again it changes to this, i.e. the session name background changes to red. I suppose this has to do with the exit status of the last command but ...
0
votes
0answers
43 views

How to make Vim and TMux keys coexist?

I am configuring vim and tmux. I configured the tab navigation in vim like this: map <M-Left> <Esc>:tabprev<CR> map <M-Right> <Esc>:tabnext<CR> map <C-T> ...
1
vote
1answer
48 views

Interactive search of tmux sessions

When switching between tmux sessions with the interactive session menu (<prefix>-s), you can jump to a specific session by typing the session's numeric or alphabetical index, e.g. (0) + ...
1
vote
1answer
147 views

Fixed highlighting in tmux

I miss highlighting (reverse mode) on console since I started to use urxvt + tmux as main terminal. The highlights was replaced with with italic font - what looks pretty cool at first - however I ...
1
vote
1answer
37 views

Execute a program in tmux without scrolling

I use tmux (with zsh, if that helps). I have a pretty good setup, but often I find myself running a program with a lot of output, and then entering copy mode and reverse searching for the line I typed ...
0
votes
0answers
18 views

tmux long lines copy and paste

I use Terminal.app for connecting to remove RHEL box and use tmux there. I have long command lines, more than the terminal width, I copy them and paste to re-execute commands, the problem is that tmux ...
0
votes
0answers
32 views

Vim: mapping for <PageUp>, <PageDown> not working in vim, but working in tmux

Did a clean install a couple days ago, copied over my .vimrc and .tmux.conf, and now Ctrl-F / Ctrl-B doesn't page down / up in vim. Ctrl-F / Ctrl-B work in tmux when selecting text. Weirder still, ...
4
votes
1answer
160 views

Switching solarized colors with mintty and tmux

I am trying to find a way to easily toggle between light/dark solarized themes without needing to create a new terminal/tmux session. I am running mintty on a Windows machine and usually log into a ...
0
votes
0answers
38 views

tmux keep ssh window after disconnect and automatically reconnect if remote host is available again

One of my tmux-panes hast two windows, ncmpcpp’s playlist (local ncmpcpp with remote-mpd host) and ncmpcpp’s visualizer (ncmpcpp started via ssh, because the visualizer fifo file can’t be read from ...
0
votes
1answer
32 views

how do I hide byobu status line?

You know, in tmux there's an option set -g status off that allows me to hide the tmux status bar, can I do the same with byobu? I can't find any option that allows me to hide the status bar and gives ...
0
votes
0answers
33 views

Copying from Emacs to other tmux pane (code execution for Ipython, sql, bash, etc)?

My preferred setup is running a terminal window with several tmux panes (a couple of shells, and an emacs session). What is the easiest way to send code from the emacs pane to be executed in the shell ...
0
votes
1answer
47 views

after SSHing into another machine and starting vim, run terminal command in original terminal

I use ssh to remotely login to a machine where I subsequently work primarily from Vim. Sometimes I want to run some shell command on my original machine without leaving Vim. What is a non-disruptive ...
1
vote
0answers
48 views

Tmux 1.9a - variable #{pane_current_command} doesn't work as expected

I'm trying to get vim-tmux-navigator to work on my my Cygwin (Win7 x64) + Tmux 1.9a but it doesn't. The reason is the variable #{pane_current_command} always returns bash instead of vim, so the ...
0
votes
1answer
69 views

tmux / screen ctrl+arrow (left right) doesn't work on SSH

I've configured tmux to skip words on Ctrl+right / left : set-window-option -g xterm-keys on It works just fine, but as I do SSH, it doesn't work and prints ;5D or ;5C.. The same issue occurred ...
0
votes
1answer
39 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 ...
2
votes
0answers
118 views

Mouse click only works once with iterm2/tmux/mosh

I'm trying to set up iTerm2 + mosh + tmux to do my remote work. I can get everything to connect up, but for some reason, the mouse response is funky. If I split my tmux window so I have two panes and ...
0
votes
0answers
11 views

Is it possible to always use systems clipboard when selecting/copying in tmux

I know you can use shift when in tmux to copy to the systems clipboard when selecting. Is it possible to make that the default option, i.e. the way most terminals work by default? Thanks.
0
votes
1answer
27 views

How do I resize the ‘usable area’ of a tmux session?

I'm using a ‘session group’, to keep multiple OS-level, window-managed terminal windows open to different tmux ‘windows’ (so they share a default working-directory, tmux settings, etceteras.) Those ...
0
votes
1answer
44 views

tmux: Detect which process runs in the active pane

Is there a way how to detect what process runs in the active pane? tmux: Find "my" window, check if it's active is related, however, it deals with the detection from within the pane. I ...
1
vote
1answer
75 views

How does one swap two panes in Tmux?

I have two panes in horizontal split. I'd like to have the pane currently on the right to be on the left in the window. I'm not talking about moving the focus (Ctrl+B o). How do I achieve this? 'left ...
0
votes
2answers
83 views

Attach a tmux session to a remote machine

I am using tmux on my local machine and usually have several sessions simultaneously. What I usually do is I have a session with different windows to work locally and the other sessions in which I ...
0
votes
1answer
15 views

TMUX window names disappear after one command

I'm running TMUX on OSX Yosemite. I can name the windows without any issues, but when ever I make a new command (anything, even just enter) it switches back to the "directory" as the window name. Why ...
0
votes
1answer
75 views

Pipe directly to a Tmux pane

I've been looking at the available Tmux commands and I can see, out of the box, that I can pipe output from a pane elsewhere or write to the terminal assigned to the session. I would like to have ...
0
votes
2answers
42 views

In tmux how do I exit the command prompt without typing an invalid command?

I can't figure out how to get out of the command prompt state I sometimes end up in when I hit cntrl+b :. I do this sometimes by accident when I'm about switch panes and then want to go into the vim ...
3
votes
1answer
236 views

Scrolling up and down in tmux session on OSX iTerm 2 and Macbook Pro

I have a Macbook Pro without dedicated PgUp and PgDown keys. What would be proper way to configure iTerm 2 and tmux so that I can scroll back tmux buffer with Fn+Up and Fn+Down (I think these usually ...
1
vote
1answer
17 views

How to automate text selection in tmux?

I'd like to automate the following task in tmux: enter copy mode move the cursor up X lines select Y lines above the cursor yank those lines Is this feasible? How? I was able to enter copy mode ...
0
votes
0answers
58 views

Tmux copy the selection to /dev/clipboard wiithout key-mapping

Many answers related to this topic suggest to map Ctrl+y to a command that pipes tmux show-buffer to xclip. In the specific case of cygwin, the correct way to interract with the Windows clipboard is ...
1
vote
1answer
183 views

tmux in putty: use ctrl-arrow to switch window

I found several questions about this, but I didn't find a working answer. I'm using putty (0.63) to login to my ubuntu 14.04 vps. In tmux I would like to use ctrl-left and ctrl-right to switch tmux ...
1
vote
1answer
186 views

How can I increase the font size for tmux status line?

Is there a way to increase the font size in the tmux status line independent of the size in the panes?
1
vote
1answer
76 views

Byobu type keybindings for tmux

I have been using Byobu for some time now and really enjoying it. But now thinking of moving back to tmux. The reason is given in the later half of the question. First of all, the question: The ...
0
votes
1answer
42 views

tmux or weechat not updating screen

I'm running weechat(1.0.1) in a tmux(1.6) session on my Raspberry Pi (Raspbian[Linux 3.12.28+ armv6l GNU/Linux]). One of these two breaks screen updates. When running weechat by itself it works fine ...