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.
1,352
questions
1
vote
1
answer
43
views
Accidentally detached all tmux sessions but the processes are still running
I have no idea what happened here but i deleted /tmp/ and now all my tmux sessions are gone, but for some weird reason the processes that used to be attached to these sessions are still running in the ...
0
votes
1
answer
21
views
Bind C-h in tmux copy mode
I'm trying to bind C-h to move to the window on the left. Here is my tmux.conf
set -g default-terminal "xterm-256color"
bind -n S-down new-window
bind -n C-l next
bind -n C-h prev
bind q ...
1
vote
0
answers
41
views
SSHing into remote machine from terminal doesn't ask for password, but through VS Code integrated terminal, it does, Why?
I'm working on a project where I have to run a python script which will open a tmux session with multiple windows, in each one ssh into a different remote machine, and run another python script. I'm ...
0
votes
0
answers
23
views
Tmux copy-paste with mouse mode on while using the `less` command
Hopefully this is not already answered, given that there are 100s of question specifically about tmux copy-paste on mouse mode.
I am specifically trying to copy text using mouse selection while using ...
0
votes
0
answers
65
views
How to setup zsh with fzf history backsearch in tmux (I get zle errors)
I am using tmux with the zsh shell.
I try to setup fzf, and I do it like this (inside my zshrc):
eval "$(fzf --zsh)"
This works, as long as I am not in tmux. I can use Ctrl-R and get the ...
0
votes
1
answer
79
views
tmux scrolling enabling fails in msys2
I recently started using tmux (in addition to screen), both in a Linux environment and in msys2 (which is also new to me and for which I cannot install screen).
Very similar to screen, starting tmux ...
3
votes
1
answer
218
views
How to keep a script running persistently in background
Currently I launch my UDP BitTorrent tracker using the command ./target/release/aquatic_udp -c "aquatic-udp-config.toml" the app shuts down when I close the console. What is the preferred ...
0
votes
1
answer
82
views
get access to console of application that is auto started
I have my "c" application which uses a lot of printf to display the necessary information. Application has started automatically at boot time (using init.d or systemd). How I can access to ...
0
votes
0
answers
30
views
How to customize tmux list session color scheme? [duplicate]
Please, what are the options to customize tmux list session color scheme?
❯ tmux -V
tmux next-3.5
tmux.conf
## COLORSCHEME: spoke (medium)
set-option -g status "on"
# default statusbar ...
0
votes
1
answer
18
views
Move/rebind tmux keybinding to a different key without spelling it out
There is a number of default keybindings in tmux that create menus of various sorts. Apparently, these keybindings open-code the entire menu they are displaying:
bind-key -T prefix < ...
0
votes
1
answer
33
views
What is the difference of passing an sleep command to tmux new-session -d and not passing anything?
I was playing with an script that sends text to a tmux stdin after this answer (https://unix.stackexchange.com/a/773049/189571 by @Kamil Maciorowski) and I was wrongly doing this
tty=$(tmux new-...
0
votes
1
answer
38
views
TERM ANSI escape sequences compatibility between xterm and screen although infocmp does not say so
I am making an script in zsh on mac that uses tmux and after the amazing https://unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas answer, I found out that when I use tmux, it uses a different ...
1
vote
3
answers
135
views
Redirecting stdout of a script as the stdin of another script/command running in a tmux session
I am adapting Marcus Müller’s answer
to a question I asked last week —
a script that redirects its stdout to a tmux session
in order to render ANSI escape sequences,
and then captures the pane render ...
0
votes
1
answer
31
views
"tmx" (tmux) erroneously connects to existing session because of prefix matching
I used "tmx" to create a tmux session called "foos" and now I want to create a new session called "foo", where the latter is a prefix of the former. But tmux connects me ...
0
votes
2
answers
22
views
systemd service terminates with error because the script (expectedly) returned
Searched extensively, many questions related but none that I found actually worked.
So I have a shell script which I want to automate via a systemd service. The script:
#!/usr/bin/env bash
SESSION=&...