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

4
votes
1answer
253 views

TMUX: Configure length of titles

I have tmux configured to show my current working directory for each window (it gets this from bash) The problem is, sometimes the directory names get too long and it takes up a lot of space. In ...
1
vote
2answers
201 views

tmux session not resuming to the same from different entry points?

I don't know if this is supposed to work by default, but it seems like when I try to resume a tmux session I have from one machine or a different one. I am using two different kinds of connection to ...
-1
votes
1answer
54 views

How to access multiple gmail accounts from the terminal

Is there a way to access several email accounts (gmail or yahoo) from the command line, I am using tmux I want to be able to view received and send emails without accessing chrome or any other ...
6
votes
1answer
917 views

On tmux, what is the difference between “bind” and “bind-key”?

On .tmux.conf, what is the difference between "bind" and "bind-key"?
2
votes
1answer
115 views

changing .tmux.conf binding for prefix

Trying to transition to tmux (version 1.6) on OS X 10.7 (so I'm sure I am making a noob mistake) and having problems with the simplest of commands. In my ~/.tmux.conf I have to map the prefix to ...
2
votes
1answer
233 views

why won't tmux resize terminal window to honor vi lines setting?

Say I open a terminal $ echo $LINES 25 $ vi :set lines? 25 :set lines=50 :!echo $LINES 50 -as I'd expect (and the terminal window resizes and everything works). But if I start tmux from a fresh ...
0
votes
2answers
392 views

Correct use of Tmux and Irssi via SSH

I'm pretty new with Tmux. I'm looking for a way to connect a Tmux session locally to a distant one, running on my server with irssi and other stuff. If i start a regular session with tmux And ...
9
votes
1answer
888 views

How to tab completion when typing command in tmux?

Some commands (kill-session and kill-server) have the same prefix. When I type (prefix:kill-seTab), tmux won't give me any result. Is there a option to show wildmenu for auto-completion inside tmux? ...
1
vote
1answer
189 views

Use forward slash as a key command in tmux

In tmux, is it possible to bind forward slash to a command? The command I want to create is below: bind-key -nr C-M-/ kill-window \; next-window This config errors with: /home/joe/.tmux.conf:42: ...
2
votes
1answer
180 views

optionally run several commands when starting tmux

I have a ~/.tmux/dev file which looks like this: selectp -t 0 # select the first pane splitw -h -p 50 # split it into two halves selectp -t 1 # select the new, second (1) pane splitw -v -p 50 ...
0
votes
1answer
425 views

tmux key binding: Window not found

My problem is I can't make tmux key bindings to switch windows. I'm running tmux terminal multiplexer on the FreeBSD server. tmux is started automatically for all remote logins using ~/.bash_profile: ...
0
votes
1answer
2k views

Tmux pane selection with mouse

I have the following problem while using tmux under Ubuntu. I enabled mouse-mode to switch between panes by clicking the mouse, but the switching is not always successful, and random characters appear ...
2
votes
2answers
71 views

tmux — naming windows and selecting them via fuzzy matching

I want to be able to name my tmux windows and select them using fuzzy matching (similar to LustyJuggler or Ctrl-P in vim). Is this possible with tmux?
2
votes
1answer
57 views

How to bind tmux key #?

I am unable to bind the # key to a tmux command. I have tried bind \# command-prompt -p "create vert pane from (put window-number[.pane-number]): " "join-pane -sv ':%%'" bind # command-prompt -p ...
0
votes
1answer
884 views

automatically split windows at tmux startup

I have a question similar to this guy http://stackoverflow.com/questions/5609192/how-to-set-up-tmux-so-that-it-starts-up-with-specified-windows-opened but more specific. I want to do this in a single ...
9
votes
2answers
3k views

Can I set a default title for a tmux window?

Right now the title defaults to reattach-to-user-namespace (OS X), which is pretty annoying. Is there an option I can put into my tmux.conf to get another default title? If not, how would I make a ...
1
vote
2answers
638 views

Get Ctrl+Arrow to work under tmux+urxvt

I have tmux command key as C-a. C-Left/C-Right to jump between words (or whatever it is called) works just fine in urxvt alone, but under urxvt/tmux it'll print '5D' and '5C' for Left/Right ...
2
votes
0answers
289 views

tmux bind key and running shell isn't working

I'm on the Mac and I'm trying to do this in my .tmux.conf: bind -t vi-copy 'y' copy-selection ; run-shell 'tmux show-buffer | curl -d @- localhost:5482' I want copy and paste to work, but I did it ...
4
votes
2answers
636 views

Where's the defaul tmux configuration file?

I'm looking for the default .tmux.conf or something like it. I'm trying to get rid of some noise in the status line that the default creates.
1
vote
0answers
38 views

Selectively “pass” commands onto the shell/program if certain programs are running

Is there a way for tmux to "pass" its control commands (C-A x) to the program running in the pane if a certain program is indeed running?
1
vote
0answers
341 views

Home and End keys doesn't work in vim inside tmux

I can't use home and end keys in vim, when in Tmux. I've got this strange stuff: H F H sample text my .tmux.conf: set-option -g mode-mouse on set-option -g mouse-select-pane on set-option -g ...
1
vote
2answers
893 views

vim backgroundcolor in tmux - how to force zsh to use screen instead of xterm in tmux

I am having the same problem like the questioner in 256 color support for vim background in tmux. In my normal terminal with zsh, I have no background color issues in vim, but when I run it inside ...
2
votes
2answers
48 views

Is it possible to freely intersperse vim panes from the same session and other shell panes in tmux?

I would like to have arbitrary arrangements of vim and other terminal panes within tmux. This is a simple example: ------------------------------------ | | | | | ...
1
vote
2answers
79 views

Tmux swap window with window to the left

I know I can swap windows using swap-window -d *source* -t *dest*, but I'd like to be able to swap the current window with the window to the left/right (effectively, 'move' a window left and right ...
0
votes
1answer
43 views

tmux: Running 'new-window “vim somefile”' gives me strange colors

I use tmux with solarized colors (256), and it works fine, except when I hit the key I have binded to: new-window "vim somefile". It opens the new window with strange colors, probably like if I had ...
2
votes
2answers
2k views

Default byobu vs tmux

What are the main features of default byobu behavior/config for tmux user? I am thinking what to deploy by default to production servers. tmux wins over screen, because it is immediately visible when ...
19
votes
2answers
3k views

vim freezes inside tmux

I'm using split panes in tmux - one being vim, other shell. Sometimes, around once a day, vim freezes. I can move between panes, perform any tmux commands, just vim doesn't react to anything. This ...
5
votes
1answer
628 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
226 views

Issues reconfiguring send-prefix for tmux

My goal is to use C-k as my tmux prefix on my local machine, but when I'm on a tmux session that itself contains an ssh session into a machine that is hosting a tmux session, I'd like to press C-kj ...
1
vote
1answer
207 views

Scroll in tmux but don't enter copy mode?

I'm using iTerm2 and tmux (from homebrew) on a Mac. I have set -g mode-mouse on in my tmux.conf. When I scroll up I am automatically put into copy mode but I am looking for a way to be able to scroll ...
1
vote
1answer
981 views

How to use Fn keys in tmux?

I have a bind in vim for F5 key to trim whitespaces and I'm unable to use it in tmux. Instead of that letter "T" appears. Is there's any solution for that? Actually it was working in putty, now I've ...
14
votes
1answer
2k views

Can't resize vim splits inside tmux

Everything working fine outside tmux. But in tmux I can't resize vim splits with mouse. I have set mouse=a in .vimrc enabled. is there's any solution for this? .tmux.conf: $ cat ~/.tmux.conf ...
0
votes
2answers
187 views

Any way to share a once-off ssh session like TeamViewer/VNC without creating a user?

Hi, I would like to trial some dev ops/sysads/db admins but I don't want to give them the keys to the kingdom until they've proven their skillz. I'd like something analgous to TeamViewer in the ...
13
votes
2answers
1k views

Tmux current pane border not obvious

I'm struggling to tell which pane is the current one in tmux if there are only two. The border only seems to highlight the adjoining edge which makes it impossible to tell. Here's a Gif to highlight ...
1
vote
1answer
89 views

how to show different status when shell idle in tmux

I'm running multiple screen by tmux. I wish tmux could show 'red' color status if one window stop send out any text for some seconds. Is there that function?
4
votes
2answers
2k views

Tmux notify when someone write me on IRSSI

I'm successfully using IRSSI inside Tmux to manage my chats. I've also tried the great tmux-powerline, which seems really full-featured. Now, I'm wondering if there is a method to make Tmux notify me ...
2
votes
1answer
421 views

In tmux, arrow and ctrl+arrow both result in the same code

Ubuntu 12.10, TERM is set to screen-256color in putty and tmux.conf, confirmed when I export both in and out of a tmux session. If I run cat > /dev/null and then press <down> then ...
1
vote
1answer
70 views

Vim on screen, without looking

I'm trying to do the following: Start a new screen session Start vim on it. Feed commands to it. Check the output as a means of testing vim. I can do this, but the catch is that I want it to be ...
4
votes
2answers
641 views

Does tmux “sort” the PATH variable?

I have a reproducible problem: set up my PATH in Bash .profile start tmux by tmux, tmux attach or any variant echo $PATH and see it with the same components but in different order How to stop ...
3
votes
1answer
219 views

tmux - how-to enable automatic switching from 80 to 132 columns and back

Currently in our terminal based accounting system, clients mostly use putty (0.61) and when a report is viewed in the terminal, an escape code is issued that kicks the screen from 80 to 132 columns if ...
1
vote
0answers
91 views

Set tmux title to path

I'm currently setting tmux to update the window title to the name of the currently running command by doing the following: set-option -g set-titles on set-option -g set-titles-string '#S:#I.#P #W' # ...
0
votes
2answers
666 views

Copy text from remote via iTerm2 with Tmux to OS X clipboard

I'd tried using iTerm2 beta Build 1.0.0.20120724 and using bind C-y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'" in .tmux.conf but none works. The solutions I found ...
0
votes
1answer
446 views

Weird distance between margin and cursor (iTerm2 + tmux)

I'm running iTerm 2 on 10.8 and I've installed zsh with oh-my-zsh and tmux (both from homebrew). When running zsh in iTerm it's all good, however, as soon as I run tmux, there is this weird distance ...
0
votes
1answer
110 views

Tmux: start copy mode and selection at the same time

I just started using tmux and trying to get a few bindings to work the same as on screen. One of the binding that I used very often on screen was to start copy mode and selection at the same time, as ...
3
votes
2answers
623 views

tmux: occasionally CTRL+B <arrow key> prints character code ([A, [B, [C, or [D) instead of switching panes

When I try to switch panes in tmux with ctrl+b , tmux sporadically prints the corresponding character code [A, [B, [C, or [D instead of switch panes. I can do this repeatedly, exactly the same way, ...
3
votes
1answer
165 views

No-socket alternative to tmux or screen

My university gives each student a directory on their AFS which is accessible via SSH. There is a (light) CLI-driven piece of software that I would like to run continuously from the university. I ...
11
votes
2answers
1k views

tmux configuration conditional to OS

There's some lines of my tmux.conf which I'd like executed only if my OS is Mac. However, I'd like to use my tmux.conf on multiple different OS's. How can I make a command conditional to the OS on ...
1
vote
1answer
73 views

tmux mouse select and scroll at the same time?

When in copy mode in tmux, using the mouse is there a way to select text, and scroll the window up at the same time? When selecting text the buffer does not scroll up when I reach the top boundary. I ...
1
vote
1answer
153 views

Text no longer shows after killing program, using tmux

I'm running a Minecraft server and whenever I "sh rtoolkit.sh" to start the server, everything works fine however once I stop the server and return to the command line ready to enter a command, text I ...
5
votes
1answer
2k views

Is it possible to search tmux scrollback history?

I'm starting to use tmux, and I already love it. But if I could search through scrollback history it would be even better (e.g. like in iTerm2). Is there a way to do it as of now?