New answers tagged tmux
0
votes
how to source tmux session_id into tmux
In theory it would be doing this:
tmux new -d -s "$session_uuid"
tmux set-option -g update-environment "remove_session session_uuid"
the bash function was not passed down to tmux, ...
1
vote
Why is tmux ignoring the `default-terminal` setting?
I suspect that terminal database for screen and its derivatives like screen-256color simply do not declare any support for italic text, this may be evident with e.g.:
tput sitm | xxd
...which prints ...
2
votes
Accepted
Get current directory of last tmux pane
You can use tmux's display-message sub command with -t (target-pane)1 flag. For example you can run
tmux display-message -p -t ! "#{pane_current_path}"
will show details of last pane.
1. ...
0
votes
Running tmux at startup on a different console (monitor)
Solution
This is for Linux that uses systemd.
As root, create a file /etc/systemd/system/tty8tmux.service with the following content:
[Unit]
Description=Tmux session in tty8
[Service]
Type=idle
User=...
0
votes
How to add a New Window button to status bar in tmux?
The following binding will create a new window upon clicking on the unused part of the status line:
bind-key -T root MouseDown1StatusDefault new-window
It's not exactly a distinct button, but it ...
1
vote
Modify tmux run-shell PATH
The shell tmux uses inside run-shell gets environment variables from the tmux server. Depending on how you started the tmux server and what happened later, the resulting environment may or may not ...
2
votes
Accepted
tmux new-window command plus argument including spaces - bash var
tmux new-window passes a command to a shell. This is good, your command is a pipeline and you need a shell to process it. But this means there will be a shell that will take your command as a string ...
0
votes
How to escape ':' in tmux format prefix
Option 1: Literal interpretation
An ‘l’ specifies that a string should be interpreted literally and not expanded. For example ‘#{l:#{?pane_in_mode,yes,no}}’ will be replaced by ‘#{?pane_in_mode,yes,...
Top 50 recent answers are included
Related Tags
tmux × 1326terminal × 162
bash × 149
ssh × 91
zsh × 73
vim × 71
gnu-screen × 69
linux × 68
shell × 65
keyboard-shortcuts × 65
colors × 44
clipboard × 42
ubuntu × 40
macos × 38
shell-script × 35
configuration × 30
terminal-multiplexer × 28
session × 23
byobu × 23
gnome-terminal × 21
command-line × 20
debian × 17
xterm × 17
scrolling × 16
environment-variables × 15