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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
9 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
37 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
7 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
34 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
33 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
21 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
30 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
98 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
129 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
27 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
72 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
89 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
49 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
124 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
82 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
44 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
14 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
42 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
70 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
91 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
19 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
26 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
56 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
207 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
17 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
22 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
110 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
174 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
77 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
34 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
139 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
163 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
89 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
35 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
108 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 ...
0
votes
1answer
60 views

iTerm2 outputs random characters when the remote tmux exits abnormally

I use tmux on my remote terminal. I found that when the remote terminal was disconnected abnormally (e.g., I just closed my laptop without exiting remote terminal normally), my terminal on iTerm will ...
1
vote
0answers
37 views

Tmux prints u'0x001b' and “]112” in vim when tmux prefix pressed

I have an issue with tmux, similar to tmux printing u'0x001b' and "]112" randomly but not the same, because it only happens inside vim, and when I press Ctrl-a (my tmux prefix). I ...
0
votes
1answer
34 views

How to move file opened in vim to tmux

I want to create a command in vim which opens the currently open file in a new viw session which is inside a new tmux session. Something like this: Open vim with test.c -> Execute given command -> ...
0
votes
1answer
54 views

Get input language from remote ssh session

I would like to know if it's possible to get locale/input language/keyboard layout of host machine when connected over ssh? I'm connecting from my Mac to linux server and run some applications in ...
0
votes
0answers
48 views

tmux loses context on attaching after reconnecting

I've been having an issue with tmux on one of my server machines. When I attach to an existing tmux named session (using tmux a -t<NUM>) over a new SSH connection, it seems to lose local ...
0
votes
0answers
55 views

New iTerm2 tab with the current tmux directory

Is that possible to using ⌘T to open a new iTerm2 tab but the default directory is the current tmux directory? Currently, the default directory is the one where the current tmux session was created. ...
0
votes
0answers
91 views

Double 'y' strokes in tmux copy-mode-vi

Darwin i386 tmux 2.6 xterm-256color I'm looking for a more vi alike yank-line-and-cancel, which triggered by two 'yy' strokes. Something like: bind-key -T copy-mode-vi yy send-keys -X select-line \;...
2
votes
1answer
165 views

Display a string in tmux status depending on output of command

I want the name of a program (a string, not the actual name) to show up in the tmux status bar if that program is running. This is what i have in my set -g status-right: #{?#{!=:#(getPid p),0},...
1
vote
1answer
43 views

Accidentally stop the tmux job via remote shell

I usually connect to host using the following command: ssh -t user@host tmux then ssh -t user@host tmux a after a disconnect/logout. I like to use a plethora of opportunities provided by tmux. ...
3
votes
1answer
81 views

Remote code execution after tmux reboot

I've read about tmux-resurrect, but it's still not clear to me if I can do the following: start tmux session ssh to remote server launch long-running code on remote host kill tmux server (e.g. local ...
0
votes
0answers
83 views

Tmux on Ubuntu on Windows 10: source ~/.bashrc doesn't work

I've adjusted my .bashrc to have a custom terminal prompt. When I run tmux the prompt is back to normal. Running source ~/.bashrc doesn't load the changes. My terminal stack is tmux -> ConEmu ->...
0
votes
1answer
523 views

Can't rebind Ctrl-B to Ctrl-A in tmux

I've set options to unbind Ctrl+B and bind tmux on Ctrl+A but Ctrl+A is not working, Ctrl+B still is. I've got my tmux config in the right place, as if I change some other option I can see the result. ...
1
vote
0answers
33 views

Background processes invoked from .bashrc (in tmux session) die when tmux exits?

This is a doozy to explain, but here's the behavior I'm observing: # ~/.bashrc if [ -n "$TMUX" ]; then sleep 100 & fi With this in my .bashrc, I can launch a tmux session, pgrep sleep, and ...
2
votes
0answers
47 views

investigate why tmux takes so long to restore with 'tmux a -d'

I have been using tmux successfully on my Ubuntu 14.04 machine for a long time, but in the last week or so, when trying tmux a -d, it sometimes takes more than a minute to bring the session back. How ...