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.
6
votes
1answer
278 views
Native xterm mouse scrolling in tmux
I have decided to try tmux as GNU screen replacement and wonder if there is a way to scroll with mouse as in xterm?
It is possible to enable native xterm scrolling with Shift + PageUp in tmux by
set ...
6
votes
1answer
263 views
Is there an easy way to save a byobu session such that I can reload it after a reboot?
I understand that there is a way of defining windows that are opened in a session by saving configuration files in $BYOBU_CONFIG_DIR. But is there a way (command or script) to save the current session ...
4
votes
1answer
1k views
Can I get tmux split screen to retain the pwd?
Say my present working directory is /home/abc/documents/xyz. Now in tmux, when I split my screen, the new pane defaults to the /home/abc directory. I want the pwd to be retained upon splitting.
2
votes
1answer
53 views
Keep tmux title from `fg` to original jobname
I'm using Eevee's .zshrc/.tmux.conf.
When I'm running a vim session, and I do Ctrl+z and then ⚘ fg, then it changes my tmux pane title to fg. I'd rather it change back to vim whatever.txt, or ...
1
vote
1answer
17 views
ZSH Quote escaping and expansion
I am trying to run tmux, passing several commands at once, and I'm unable to properly quote the string.
The command succeeds when manually entered on the command line:
~% /usr/local/bin/tmux ...
1
vote
1answer
26 views
Check if Vim has more than one window open
I'd like to overload my tmux binding which cycles through panes to also cycle through Vim windows if the current pane happens to be running Vim.
I can detect the presence of Vim by checking the pane ...
1
vote
1answer
103 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 ...
1
vote
1answer
120 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
167 views
Clicking far away in vim in tmux in urxvt
I use vim inside tmux inside urxvt, and the mouse works perfectly well for clicking and selecting text, except when I want to click too far to the right.
It seems to be related to the distance in ...
1
vote
1answer
116 views
change colours when running screen
I use gnome-terminal in Centos 5.
I have my terminal settings customized to use the colours I like.
However when I run screen (or tmux) the colours for my terminal input lines are always inverted. ...
1
vote
1answer
326 views
Tmux + urxvt ghost activity notifications
Im using tmux on urxvt, I have activity monitoring turned on and i noticed that all tmux windows get an activity notification after every 10~15 seconds, when i switch to that window there is nothing. ...
1
vote
1answer
2k views
howto safely quit tmux session?
Currently I'm using kill-session command, but it looks a bit aggressive and often leave sub-processes running, e.g. I have the following processes running in separate tmux windows:
lighttpd -D -f ...
3
votes
0answers
51 views
iTerm 2 running tmux session causes “startup disk almost full” randomly
Anytime I run a tmux session, disk space will randomly begin filling up and the computer will slow down, then everything goes back to normal. This happens periodically. I am using iTerm 2.
Does ...
2
votes
0answers
57 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 ...
2
votes
0answers
65 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?
2
votes
0answers
70 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
32 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
48 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
0answers
33 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' # ...
1
vote
0answers
36 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
0answers
57 views
tmux link-window to remote window
In a server, there's a persistent tmux session, with several windows running 24/7.
At my local computer, I run several tmux sessions, one at a time, depending on the type of work.
I wonder if it's ...
1
vote
0answers
104 views
How do I correctly rebind select-pane commands in tmux?
By default, tmux seems to be using
C-b, Left to move left a pane
C-b, Right to move right pane
...
I want to use
C-b, h to move left a pane
C-b, l to move right a pane
...
Here's my current ...
1
vote
0answers
131 views
Ctrl-C does not work in tmux window
I have a Mini2440 ARM Board, and I have put a base Debian 6.0 system on it using multistrap.
I have used tmux to run several processes in defferent windows from /etc/rc.local. I connect to the board ...
1
vote
0answers
170 views
tmux autocomplete command
I use this key-bind to launch a ssh session in a split window
bind-key S command-prompt -p "ssh" "splitw 'ssh %1'"
how I can get autocomplete in tmux command?
example
ssh hos<tab>
ssh host
...
1
vote
0answers
158 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 ...
1
vote
0answers
102 views
Can tmux list tabs vertically?
Is there a way to get the list of active tabs in tmux to be vertical along the left edge of the window? (Like chrome's --enable-vertical-tabs)
1
vote
0answers
183 views
Changing puttyTRAY's URL regex in order to match URLs across lines separated by tmux window boundaries
I use puttytray to access a shell account on which I have a tmux instance running. Inside tmux, I have irssi running in a window. When people post long URLs in IRC, however, it's annoying since these ...
0
votes
0answers
10 views
tmux window last line to statusbar
I am running an update-script within tmux, and just to see that the progress is ticking on I would like to see the output from the last line within tmux statusbar.
My idea is to use something that ...
0
votes
0answers
14 views
Status display after boot on Debian
I run some VM's and some of them are dedicated to several jobs. For example lets say that one machine is running samba and ftp services and another is running Apache and some database.
Now what I ...
0
votes
0answers
18 views
How to stop tmux from automatically switching windows
I have several windows in tmux, and it keeps switching windows without me requesting it. I haven't pinned down what triggers it -- it coincides with output in the target window, but when I run sleep ...
0
votes
0answers
16 views
key repeat when scrolling in tmux
When using tmux, I would like to keep the PgUp/Down key pressed to scroll quickly between pages. I press Ctrl-b PgUp to enter copy mode and to scroll the page, but if I keep it pressed, nothing ...
0
votes
0answers
43 views
Vim only takes up half the screen in tmux
When I run vim in tmux, it only takes up half the screen (usually the left half). I would like vim to use up the whole screen, but don't know how. Tmux still seems to consider the entire screen as ...
0
votes
0answers
23 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: ...
0
votes
0answers
9 views
per-session CPU and/or I/O priorities with tmux
In gnu-screen I can start a session with a specific CPU priority by running:
sudo /usr/bin/nice -n 19 -- "screen -dmS compiles"
The screen session, its windows, and any executed commands all ...
0
votes
0answers
29 views
Tmux: Run a command every time switching window/pane
I currently use powerline to update contents of my tmux status bar. Powerline reads few environment variables to determine the info for its segments, which get displayed on the tmux status bar.
I ...
0
votes
0answers
123 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 ...
0
votes
0answers
17 views
How to make tmux “choose-window” indices match displayed indices?
In tmux, when I invoke choose-window to switch windows, I am presented with this:
The indices on the left, which are used to select the window (i.e. I have to hit 0 to select the first window) do ...
0
votes
0answers
125 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
0answers
138 views
Tmux visual artifacts, strange character map
It’s running a java program outputting console log.
Config file
# visuals
set -g status-bg black
set -g status-fg white
set -g status-left '#S (#[fg=green]#(whoami)@#(hostname)#[fg=white])'
set -g ...
0
votes
0answers
120 views
How to pass the “F keys” and key combinations to the active byobu session when its inside another byobu?
When I run byobu on a local computer, ssh to a remote computer from that byobu session, and then run byobu on the remote computer too, the key combinations or their function key equivalents are always ...
0
votes
0answers
24 views
tmux - Is it possible to configure copy mode to use [Enter] for BOTH begin and end?
That is, I want tmux to behave like screen, where I push Enter once to start selecting, and push Enter again to actually copy.
I tried doing this in my tmux.conf:
bind -t vi-copy Enter ...
0
votes
0answers
101 views
keybinding ctrl+shift+key combos in tmux
Once I had asked a somewhat relevant question in unix&linux.
Currently I'm trying to map ctrl+shift+c combo to copy the text in tmux buffer to x clipboard. I can bind it to ctrl+c using:
...
0
votes
0answers
42 views
tmux terminal integration with gterm
I think that I ran across a blog entry at some point which featured a modification to gterm which tightly integrated with tmux -- allowing different gterm tabs to contain alternate tmux screens or ...
0
votes
0answers
69 views
how to remove tmux copy-mode line number indicator
When I enter to tmux copy-mode, indicator in form [line/total lines] appears at the right up corner.
The problem is when I use native xterm scrolling with Shift+PageUp, this indicator remains on each ...
0
votes
0answers
145 views
Terminal with session management and scrollback OS X
I use GNU Screen all the time in OS X, primarily running on the server side of my SSH connections in order to maintain persistence, while multitasking. The beauty is that if I get disconnected, all ...
0
votes
0answers
33 views
Source scripts/functions
I created/copied a few scripts I'm using regularly in tmux.
For example, tmux-split-panes script that cd's into the same directory it was split from.
I call the script using send-keys ...
0
votes
0answers
166 views
Tmux skipping environment variables
I'm trying to create a tmux configuration that would open a specific number of windows and run some programs in them. Layout-wise everything is fine, but tmux skips some environment variables like ...
0
votes
0answers
256 views
Configuring tmux to use Windows key for prefix
Is it possible to use the Windows key in tmux?
I'd like to bind my commands to use it as the prefix.
0
votes
0answers
33 views
How to goto other end of highlighted text in copy-mode of tmux?
In GNU screen copy mode, I can type o to goto other end of highlighted text.
How to do it in tmux?
-1
votes
0answers
20 views
What does it mean to 'kill' a window in tmux
I've been using Linux and Emacs for a while, but I am brand new to tmux. I see that in the default key bindings, ctrl-b & can be used to "kill" the current window, but I do not know if this ...
