Questions tagged [tmux]

tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

Filter by
Sorted by
Tagged with
2
votes
0answers
113 views

Group membership disappears with tmux

I have a weird problem in that my user (on Linux Mint 18.3 Sylvia) is part of group docker, which I verify by starting a terminal: $ groups me adm cdrom sudo dip plugdev lpadmin sambashare docker ...
2
votes
1answer
931 views

Connect to remote server with byobu and run command

I have a remote server that I usually connect to with ssh and upon connection byobu starts automatically (via a line in .profile set up with the script byobu-enable). Now I want to set up a different ...
1
vote
1answer
292 views

Tmux: Unable to switch panes when in copy mode?

I have tried copying and pasting my coworker's tmux.conf config to mine and running tmux source-file ~/.tmux.conf. It seems to have updated (I can tell because the colors have been updated) He has a ...
0
votes
0answers
334 views

tmux command not working when called by ssh

I want to build an interface, that, using ssh and tmux will be able to start/stop daemons. My approach to start the daemon was: tmux new-session -s myDaemonID -d /path/to/daemon/exec /path/to/daemon/...
0
votes
2answers
113 views

tmux string interpolation for session name

I am trying to make new session with the same name a as the current one with an extra -2 on the end of the name. bind C new-session -c "#{pane_current_path}" -s "#{session_name}"-2 The session_named ...
2
votes
0answers
254 views

dualhead with tmux and two xterm windows

I'm running a dualhead system. Unfortunately, my monitors do not sport the same resolution, so I can't "just" use a huge xterm window spanning both screens. Also I imagine that it would be hard to ...
2
votes
1answer
2k views

tmux: how can one position the status bar at true bottom?

Fairly new to tmux, and have been gradually adding stuff to my config file. I have the line set -g status-position bottom to put my status bar at the bottom, but there is still a large amount of ...
0
votes
1answer
327 views

How can I bind Alt+Shift+h to previous window in tmux?

I'm trying to use tmux (in xterm) in a vim friendly way. This is my .tmux.conf right now. bind-key -n M-Down select-pane -D bind-key -n M-Up select-pane -U bind-key -n M-Left select-pane -...
3
votes
2answers
260 views

tmux copy-pipe truncates selection

I've noticed tmux copy-pipe truncating selection (leaving out the last part of the selection). Eg: bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -in -sel clipboard" Sometimes only copies ...
2
votes
4answers
184 views

Run a specific function from a file that contains 2 or more functions, in a detached tmux session

I use Ubuntu 16.04 with Bash and I have a file that contains many different functions. In between these functions, there is this one: tdm() { chmod -R a-x,a=rX,u+w "$drt"/phpmyadmin/ sleep 2h ...
1
vote
1answer
127 views

Process to be executed in full-screen mode

I am trying to develop a chat application whose interface is terminal-based. For that, I've been playing around with both screen and tmux commands. However, I found a similarity with both of them: my ...
2
votes
1answer
151 views

Why is there no need to escape a sequence to apply a style to the text in a terminal inside tmux?

If I want the ANSI color 0 to be red, in the urxvt terminal, I need to pass the sequence \e]4;0;red\a to the latter: printf '\e]4;0;red\a' I found the general syntax here: OSC 4 ; c ; spec BEL ...
1
vote
0answers
1k views

Tmux stuck in copy-mode

After performing a keyboard shortcut in tmux (I am not sure which), I am put into a state of perpetual copy-mode. I can type normally, but every time I hit the n key it prompts to gotoline input. If ...
2
votes
1answer
299 views

How to configure bashrc to close all tmux sessions when I close the terminal?

I'm using Gnome Terminal and tmux and I'd like that all tmux sessions were closed when I close the Gnome Terminal, is that possible? I checked the Arch Wiki article on tmux and found some relevant ...
0
votes
1answer
545 views

send keys to the right pane in Tmux

Currently I hard coded the pane of which to send the keys to, I wonder how can I send the command to the right pane of the pane I'm currently focused on? Current: bind b send-keys -t 2 'make' Enter ...
4
votes
1answer
587 views

Don't nest tmux in a remote ssh shell

I've set up the .zshrc of my user account on all of the hosts to which I connect to automatically start tmux on login as long as it's not already running. if [ -z "$TMUX" ]; then tmux attach -d || ...
1
vote
0answers
322 views

Cannot access home directory when using Tmux

I use tmux frequently but on one particular machine in one computer cluster, when I use tmux the working directory is changed to / and I am unable to access my home directory. I have checked that I am ...
1
vote
1answer
434 views

Copy and paste with single command/key with tmux

I really like the tmux-copycat plugin for selecting filenames in the terminal buffer, but one thing that would make it even better is the ability to copy and paste the selected text with one command (...
0
votes
1answer
197 views

When tmux exits (closes pty master), background processes from startup scripts die — why?

I'm having difficulty understanding an answer I received to a question I posed about tmux — specifically, re: what the pseudoterminal does with child processes when it exits. Original Question I ...
1
vote
1answer
983 views

tmux - interactive window selector fullscreen while in split

If i open the window selector with <prefix>w while in a split, the window selector shows only in the current split. How can i make the window selector fill the entire terminal? The solution ...
2
votes
2answers
2k views

Run build command from vim, send output to another tmux pane?

I'm using tmux and Vim as my development IDE. I have 3 panes open in tmux: one for editing source code, one for debugging and one as a display console. From Vim I would like to run the make command ...
-5
votes
1answer
2k views

The .tmux.conf language

I'm customizing my .tmux.conf and have found lots of other examples on other peoples customization. Here is one example that apparently makes tmux pane splitting more vim like: set-option -g prefix ...
0
votes
2answers
1k views

How to open a tmux terminal with automatically separated to 6 windows?

I can start tmux with simply issuing: "tmux", then by hand, separate the windows to 6: But how could I automatically start tmux with "X" amount, ex.: 6 of separated windows? So I could work later on ...
0
votes
1answer
2k views

Why doesn't tmux source work? Unknown command [closed]

How can I fix this issue? This is the code and output I received. This is tmux 2.3 and debian 8.9. root@ns540540:/# tmux source ~/.tmux.conf /root/.tmux.conf:1: unknown command: @plugin /root/.tmux....
0
votes
1answer
3k views

Tmux command mode - Use vi shortcuts

In bash commandline, you can use vim shortcuts by setting set editing-mode vi in the ~/.inputrc file. I want to be able do the same when typing <prefix>:new to create a new window for example. (...
1
vote
1answer
609 views

Copy between tmux sessions without including line numbers

When I try to copy and paste between tmux sessions or windows, one problem is that I usually have line numbers displayed when using Vim and tmux copies the line numbers: Is there any way to avoid ...
4
votes
1answer
1k views

How to start tmux with no configuration?

How can I start tmux without allowing it to read any configuration files? (I have a server with only one account, so I have to share many configuration files of many programs. This means, I cannot ...
2
votes
2answers
3k views

bash script to start another script in a tmux session

I have a bash script that continuously outputs some information when run. I need to Automatically run this when my system boots. Monitor this output and control it every once in a while remotely, ...
4
votes
0answers
213 views

Vim in tmux does not correctly determine background color [duplicate]

I connect to a server via SSH from xfce4-terminal. When I open vim outside of tmux, colors in vim are very bright (which is good): When I start tmux with default config, and open vim from there, it ...
3
votes
1answer
4k views

it's possible to send input to a tmux session without connecting to it?

Is there any command that I can use to send input or commands to a given tmux session / pane without connecting to it? It's for unattended access, I've a console application running on a tmux ...
4
votes
1answer
554 views

tmux and control sequence character issue

I try to resize terminal window from command line on my MacOSX I can resize the width and heigh of the terminal with following command(Control Sequence Introducer CSI) printf '\e[8;100;200t' "resize ...
0
votes
1answer
239 views

Bash - Take input from user and send a command having that input in tmux

I am running several dedicated servers on different tmux sessions. I have to change ports and have to write a command in all the tmux sessions. The command is: config['Port'] = 12345, 12345 being the ...
0
votes
1answer
285 views

Echo something from a tmux session to base session

I have a script with this code: #!/bin/bash tmux new-session -d bash sleep 1d echo 1 day passed tmux kill-session AFAIU, the echo will appear after 24 hours in the tmux session's stdout ...
0
votes
1answer
3k views

How do I password-lock a tmux client?

I have the following .tmux.conf lines: # Enable locking set -g lock-command vlock set -g lock-after-time 0 # Seconds; 0 = never bind l lock-client bind L lock-session Pressing [prefix] + L (capital) ...
3
votes
3answers
935 views

shell command `tmux` throws `can't use /dev/tty` error

I just switched from using terminator to termite today. I also Installed Fish and oh my fish, Spent a couple hours configuring everything, but when I went to start a tmux session to get some work ...
0
votes
1answer
460 views

Tmux - Arrow keys return raw data/non-escaped caracters ^[[A ^[[B ^[[D ^[[C

I just updated to Debian/Linux 9 (Stretch) and am in the process of setting everything up. So far I've only installed vim and tmux. My problem is that when I use the arrow keys, they return raw data/...
1
vote
0answers
26 views

How to re-use actions in tmux?

Actions assigned to keys can become quite verbose (split across multiple lines with if-statements). Is there a way to define an action as a macro or function that can be re-used?
0
votes
1answer
619 views

ncurses screen/tmux-256color

I have my term set to tmux-256color through .tmux.conf, but I can't get 256 color mode in an ncurses app working. According to this post it should be supported by now. xterm-256color works perfectly ...
5
votes
4answers
1k views

How to get TMux to only show windows when using choose-tree?

I recently installed the latest version of TMux and when I tried to switch between my windows (control-a w, or choose-tree) I was greeted with 3 entries instead of 2. Instead of only showing my ...
0
votes
1answer
390 views

tmux - List output last line of all windows in new window

I am running a tmux session with 40 windows. I need to create an overview window listing the last line of each screen and updating each listing as the output of the respective window.
0
votes
1answer
177 views

tmux is showing zsh for vim with `pane_current_command`

For some reason Tmux is showing zsh when it should be showing vim for the output of #{pane_current_command}, this is screwing up my vim aware pane moving commands in tmux which rely on it working ...
1
vote
1answer
885 views

tmux and screen sessions disappearing when connection is lost abruptly

I have used both screen and tmux to be able to resume my work in the server. I have encountered this problem with both tmux and screen where the active sessions disappear when I lose the internet ...
1
vote
1answer
466 views

pinentry not showing in tmux

I'm having some trouble getting gpg (actually pass which uses gpg in the background) to work inside of tmux and a Yubikey Neo. When attempting to decrypt a file or sign something using gpg I get the ...
5
votes
1answer
1k views

Make user systemd service persistent

I have this ~/.config/systemd/user/weechat.service systemd service which worked fine but after system upgrade the process gets killed which it didn't do before. The process is killed immediately when ...
0
votes
1answer
561 views

tmux, bash, and .bashrc

So, basically, when tmux launches, what all does it run through to start up? I recently changed the location of my home directory on a few servers, CentOS and Ubuntu. I also use tmux and bash. I ...
1
vote
1answer
612 views

Tmux copy mode Home and End keys

I've configured vim copy mode in tmux 2.5 with setw -g mode-keys vi But now to go to the start of the line I have to use 0 and to go to the end of the line I have to use $. How do I remap them to ...
3
votes
2answers
101 views

Why does launching tmux inside bashrc enable ALT+LEFT / ALT-RIGHT so switch tty?

I am running Ubuntu 17.04. This happens inside X, after I have logged in. I'm running the default install of Ubuntu Gnome https://ubuntugnome.org/ I have the following code inside ~/.bashrc [[ -z "$...
0
votes
1answer
360 views

tmux-resurrect is not restoring my running commands

I'm using the tmux-resurrect plugin to recreate tmux sessions after tmux is shutdown. It mostly works but it is not restoring running commands. I've tried with vim, less, man and tail, all supported, ...
0
votes
1answer
431 views

tmux stopped working properly with zsh and oh-my-zsh

I was using tmux and zsh for some time, but today after entering tmux, I got a strange error, which looks as follows: zsh-newuser-install: startup files exist, aborting. Use the argument -f if you ...
1
vote
2answers
157 views

Reduce control-c latency in xterm and tmux

When using tmux under xterm, I am unable to quickly stop process that is overwhelming the terminal with output. The interrupt eventually arrives but only after a long delay. This problem does not ...