Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tmux]

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.

0
votes
1answer
27 views

Tmux in bash script executing too fast

I am trying to write a bash script that performs the following actions: open 8 tmux terminals each of the terminals connects in ssh to a remote server start a script X on 3 server, and when it's done ...
0
votes
0answers
6 views

Tmux bindings with j and k broken

Mac High Sierra, Tmux 2.7. End goal: Make Ctrl+j and Ctrl+k move between tmux panes. Weird behavior: Failures bind-key -T root C-j select-pane -t :.+1 bind-key -T ...
0
votes
0answers
10 views

Tmux resize-pane with client-detached hook not working

I'm currently trying to set the client-detached hook to automatically resize the pane when I detach from tmux on a secondary client with different dimensions. For example, if I am attached at my pc, ...
0
votes
1answer
17 views

Can't start Minecraft server in tmux with systemctl

I'm trying to automate my Minecraft server because having to manually wrangle tmux sessions gets really old after a while. Here's the systemd service file I wrote to help me with that: [Unit] ...
0
votes
0answers
17 views

Why does tmux require setting 256 color mode manually?

I just logged-in to a machine and realized that the colors changed inside tmux. It seems like even with TERM=xterm-256color and tput colors ⇒ 256 tmux switches to TERM=screen and tput colors ⇒ 8. ...
1
vote
1answer
21 views

Change the color of tmux pane indicators shown when using “display-pane”

When issuing a command like the following bind Left select-pane -L \; display-pane tmux will display numbers on every pane. The number shown on the active pane will have a different color than the ...
0
votes
0answers
16 views

What are the Byobu keybindings for “Super/Command”, “Home/End”, “PageUp/PageDown” and other keys?

I have read through the byobu sites and edited my /usr/share/byobu/keybindings/f-keys.tmux I wish to emulate iTerm2 on Mac by using CMD-D to split panes horizontally. What is the key-code for CMD in ...
0
votes
0answers
9 views

tmux session appears twice with different names

I've run into an odd situation with tmux just now, and I'm not sure if it's a bug, or (more likely) something that I did by accident: I have two sessions: foo-0 foo-1 Attaching to them with tmux ...
0
votes
0answers
29 views

tmux prevents bash from seeing ctrl commands

in my .bashrc, I have bind -r '\C-s' stty -ixon #bind C-s to go backword (puns) - moves cursor to previous [:space:] on cmd line set -o ignoreeof bind '"\C-s": shell-backward-word' #bind C-d to go ...
0
votes
0answers
12 views

tmux command works on CentOS/Ubuntu, fails on Mac

My .tmux.conf worked on CentOS 7 with tmux 2.6 and Ubuntu 16 with tmux 1.8, but won't work on OSX High Sierra with tmux 2.7. Here's the command I'm trying: run-shell "tmux setenv -g TMUX_VERSION $(...
1
vote
1answer
30 views

Keep tmux title, bash title and terminal/iTerm window title in sync

Something similar was asked here but I wasn't able to resolve the issue for me tmux: # use titles set-option -g set-titles on set-option -g set-titles-string '#T' # add custom term set -g default-...
0
votes
2answers
40 views

How to install softwares for all users?

I am running an Ubuntu 18.04 server among a small group. How can I install some common software that all users can use at the same time? On my own laptop, I can just use apt-get. However, it has a ...
0
votes
1answer
27 views

`byoby` exits randomly on autocomplete

For the first time I am having issues with byobu existing randomly on autocomplete (when I push Tab). I can't reproduce it constantly, but it seems to happen totally randomly. Where can I find the ...
0
votes
1answer
27 views

How to fully rename tmux window

I have such tmux config related to the window naming set -g window-status-format '#[fg=colour235,bg=colour252,bold] #I #(pwd="#{pane_current_path}"; echo ${pwd####*/}) #W ' set -g window-status-...
0
votes
1answer
24 views

Can a process that was started in a tmux session fall asleep?

Can a process that was started in a tmux session fall asleep? If yes, what is the cause(s), how to prevent it? Example reason for the question: I started a process on a server yesterday (training ...
0
votes
1answer
110 views

Sudo with auth sufficient pam_tid.so does not work with tmux

I did not really like the idea of installing some third-party sudo tool, so instead of using sudo-touchid I decided to use the /etc/pam.d/sudo trick and it works wonders. I use iTerm2 with zsh, and ...
0
votes
0answers
12 views

Is that possible to show screen inside a tmux session without attach in?

I'm running a monitor inside a tmux session, and now I want to see the status. Surely I can tmux attach -t monitor and then detach. But I'm wondering is there a convenient way to just have a look ...
0
votes
2answers
36 views

Mac terminal isn't recognizing wild card

I'm trying to write a script that shrinks all the images in a folder. From here I got this: for i in *.png; do sips -Z 800 "${i}" --out "${i%png}"; done but I keep getting this error: Warning: *....
0
votes
0answers
55 views

How to copy multiple lines cross screen in tmux?

Say I have a opening tmux session, in which my program outputs a lot of contents cross screen which needs scroll up many times to see the full content, now I want to copy all contents, but I cannot ...
0
votes
1answer
28 views

tmux clock shows in wrong pane from detached mode

So I just created a bunch of panes in detached mode. Now I'd like to put a clock in the second pane (pane number 1). here's my code: tmux new-session -d -s ssh_tmux tmux splitw -v -p 30 -t ssh_tmux:...
0
votes
0answers
40 views

How do I escape tmate/tmux and get to a normal ssh session?

A service provider gives me a tmate.io address to connect to a server. It gives me something very closely resembling tmux. I don't want that. I'd rather have it akin to a normal ssh session, where I ...
0
votes
1answer
121 views

Prevent tmux from consuming escape key

For some reason tmux is consuming/handling the escape key weird. When in tmux, if I hit enter nothing is sent. If I quickly double press escape, then two escape keys will be sent. I can also press ...
2
votes
0answers
138 views

View different parts of a file, in different terminals, scrolled in synchrony?

Two terminals, on different machines, viewing consecutive parts of a file in vim. You scroll/move cursor in one terminal, and the other moves the same relative amount. So you get one logical window ...
1
vote
0answers
58 views

Remote tmux session with local tmux client

How to attach to a session created on a remote server with my local tmux client ? I known I can install tmux on the remote machine and do something like ssh -t ... tmux attach. But I want my local ...
2
votes
0answers
204 views

Hide tmux pane border

This is currently what my tmux pane borders look like: This is multiple terminals open in i3 (what I would like to have it look like in tmux): Is it possible to just make the pane borders invisible? ...
2
votes
1answer
163 views

How to stop tmux from launching login shells?

TMUX defaults to launching shells as login shells. I am looking for a way to negate this behavior (so that it will launch non-login shells) in .tmux.conf file. Currently I can use tmux set-option -g ...
0
votes
0answers
68 views

How can I detach from a remote tmux session that is displayed within a local tmux session?

On my local computer I have tmux open. Within this tmux I have a reverse SSH connection to a remote computer. On this remote computer a opened tmux. I want to detach from the tmux session on the ...
0
votes
1answer
375 views

unknown command error when loading .tmux.conf

So I made my ~/.tmux.conf as suggested in other threads in two different ways tmux show -g | cat > ~/.tmux.conf tmux show -g > ~/.tmux.conf I tested them both and they both give me an error: /...
0
votes
1answer
86 views

vim forgets registers (*, +) after reattaching tmux session

I ssh into a remote system and use a vim+tmux workflow. I love it because I can detach my session at the end of the day, and when I fire it back up the next morning it's exactly where I left off. ...
1
vote
0answers
71 views

How can I change the default TMUX plugin manager key bindings?

For example, the default binding to install plugins using the TMUX plugin manager is prefix+I, but say I accidentally overwrite this with another key binding. How can I reset it without killing/...
0
votes
0answers
26 views

Tmux starting a second session upon startup with .tmux.conf file

On Mac OS Sierra, I have a ~/.tmux.conf file with the following text. When I launch tmux, it's processing this configuration file in the background, but it's starting up and showing me a second tmux ...
0
votes
0answers
58 views

Bash 4.3.48 does not wrap lines with TERM=screen

I have bash 4.3.48 and I use konsole as terminal emulator. The default value is TERM=xterm. However, I want to use tmux and it requires that the TERM value should be either screen or screen-256colors. ...
0
votes
2answers
103 views

Byobu Systemd Error with ownership

Trying to run #!/bin/sh # byobu_launcher.sh ver 20170915122301 Copyright 2017 alexx, MIT Licence ver 1.0 byobu new-session -d -s $USER # mongod byobu new-window -t $USER:1 -n 'MLT' byobu send-...
0
votes
1answer
130 views

tmux randomly changes cursor position

Sometimes in tmux, when I have split my window and have a command which spans more than 1 line I experience problems with editing the command. Specifically, if I move mu cursor using the arrow keys to ...
0
votes
0answers
42 views

Unable to perform ´tmux ls´

Im currently experiencing this issue with byobu (using tmux as backend) where basically I cannot attach to any tmux/byobu session. More simply, I cannot even list them. If I try to do a tmux ls, what ...
0
votes
0answers
29 views

Ctrl-a + } weird behavior with terminal pane tmux

I am new to tmux and have been using it for a while. I am trying to learn rotating panes with Ctrl-a Shift-} and Ctrl-a Shift-}. However, I discovered that when I have a focused/active pane with ...
0
votes
0answers
63 views

tmux how to extend mouse selection to next position

In gnome-terminal, you can press down the SHIFT key and double click a word to select and copy that word, then keep theSHIFT key down and click the next position. It will extend the selection region ...
1
vote
0answers
319 views

Scroll multiple lines with mouse in tmux

setw -g mouse on With that in $HOME/.tmux.conf, I can use the scroll wheel on my mouse to scroll tmux screen to view previous lines. But that only scrolls 1 line per mouse scroll. I want to specify a ...
0
votes
0answers
20 views

tmux 1.8: can't have key bound with no prefix in default-mode and in copy-mode

These are the defaults in tmux 1.8, and they work. #binds <prefix>PageUp to entering copy mode and going up a page (or 1/2 page?) bind-key PPage copy-mode -u #binds PageUp in copy-mode to ...
1
vote
0answers
28 views

iterm itermplot tmux scroll makes plots disappear

I have a tmux session in my iTerm2 window with a single pane. When I plot something using ipython (with itermplot) it appears as expected. As soon as I switch to scrolling mode ( [ ), the plot ...
0
votes
1answer
128 views

emacs inside of tmux inside of putty on windows does not seem control keys

I've been search around and it seems there is no one who's concerned about my specific problem. Following is some configurations: PuTTY Release 0.70 Keyboard: Function keys ESC[n~ Window/Colours, ...
1
vote
1answer
305 views

Make tmux window names use bash $PS1

On Windows, connecting to tmux 1.8 on CentOS 7 through MobaXterm. Ideally, I want my tmux windows to have the name of the last command that I typed in whichever pane is active (like, cd /home not ...
0
votes
0answers
23 views

tmux with smallish panes?

I'm working on a smallish notebook screen. Full screen I have about 135 characters wide terminal at comfortable settings. For my main work pane I need about 90 leaving about 40 for other uses. The ...
0
votes
1answer
266 views

How to enable tmux scrolling?

Using https://github.com/samoshkin/tmux-config the master key is CTRL-a. The documentation suggests: There is a root keybinding to enter Copy mode: M-Up. Once in copy mode, you have several scroll ...
0
votes
0answers
43 views

Why is the -s or -g option required while setting escape-time option in tmux?

I am unable to understand why exactly the -s or -g option is required while setting the escape-time option in tmux. Here are some answers that seem to use the -s or -g option while setting escape-time:...
0
votes
1answer
181 views

Trying to get vim-like pane navigation in tmux (hjkl) and select-pane not working

I'm trying to set the following keybindings to get similar pane navigation as vim. I tried the following in my tmux.conf file, but it ends up just making it so I can't use hjkl at all (even when just ...
1
vote
1answer
216 views

ALT+left-arrow & ALT+right-arrow not working in tmux (zsh) on Mac OSX

I've configured my zsh to use ALT and left/right arrows to word left/right using the following in my ~/.zshrc file, however when I open a tmux session it doesn't work and just outputs 'D' or 'C'… ...
1
vote
0answers
117 views

tmux cuts symbols in status bar

For some reason, I can't use tmux battery plugin, so I've written a small script to get battery status: percentage=$(cat /sys/class/power_supply/BAT1/capacity) status=$(cat /sys/class/power_supply/...
1
vote
0answers
39 views

disable terminal bell except when called manually

The terminal bell rings in several scenarios. To name a few: when you attempt to delete when at the beginning of a prompt when you attempt to tab complete with no valid options in vim, when you ...
1
vote
1answer
135 views

integrate tmux tabs with vim tabs

I'm trying to simplify the way that I navigate between tabs in my terminal. Using ssh <workstation> -t 'tmux -CC attach', I can get iTerm to display tmux tabs as native macOS tabs (and therefore ...