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.
1,121 questions
2
votes
0
answers
48
views
SSH 'No route to host' only within tmux session
I began exploring tmux yesterday, and arrived at a very strange problem: From inside a tmux session, I can SSH into any server and my router – but not into a local server. Connecting from outside a ...
2
votes
0
answers
31
views
Detected terminal width always smaller when first opening terminal compared to opening new tmux tabs
I have a few 'cosmetic' lines in my .bashrc file, which rely on detecting the current width (i.e. number of columns) on the terminal in order to work properly.
E.g., this one prints a nice 'banner' at ...
0
votes
0
answers
56
views
vim-tmux-navigator doesn't seem to work in a docker container
EDIT
Seems like there is a question as to why I have this setup. Per company policy I'm developing on a remote machine. The machine is Amazon Linux 2, which is not upgradable. We will not be switching ...
1
vote
2
answers
133
views
How can I have a remote SSH-like session that doesn't close due to connection failure?
I have a laptop from which I SSH into a remote machine every day. When the connection drops (e.g., because I'm taking my laptop from work to home and logging back on), all of my SSH sessions die. I ...
0
votes
2
answers
134
views
Keep Tmux window list immovably centralised in the status line even when right status content changes width
I've started using gitmux by arainone when I discovered it from a question on displaying git status in the tmux status line.
Having installed and configured gitmux the output now appears on the right ...
1
vote
1
answer
862
views
Why does "tmux send-keys" behave differently in a bash script?
Something strange is happening when I try to use tmux send-keys in a bash function, or a bash script, or even inside a file that I source.
I have reduced the problem to this: a file commands.txt with ...
1
vote
0
answers
246
views
How to get tmux to send the right char sequence for Ctrl + Enter and Ctrl + Shift + Enter shortcuts?
I am trying to get the following keyboard shortcuts working in neovim inside a wezterm+zsh+tmux session.
Ctrl + Enter: create a newline below the cursor in insert mode and move the cursor there with ...
3
votes
1
answer
643
views
Sending raw keys with tmux?
tmux has send-keys command that is very useful. One property of this command that it "does what you mean" and lets you e.g. send ENTER using tmux send-keys. This is perhaps a nice hack - but ...
2
votes
1
answer
77
views
Why does tmux only allow scrolling copy mode?
Why cant I scroll in tmux before entering copy mode with ctrl-b [?
Apparently tmux does have a special integration just for iTerm2 (tmux -CC), but why isn't this default? (see Scroll in tmux but don&#...
2
votes
0
answers
72
views
Tmux keybinding customization in tree mode
I use Halmak layout and try to setup tmux key bindings in a vim-like way, so that .aeo keys would behave like hjkl. It is easy to configure the root, prefix and copy-mode-vi key tables, but it seems ...
0
votes
1
answer
120
views
How can I find where a command is being ran from during login on Debian 12?
When installing my server I installed neofetch, as one does. I also had it run whenever I logged into a shell.
Skip forward to today, when I’ve uninstalled neofetch in favour of fastfetch.
Now, when I ...
1
vote
1
answer
85
views
tmux: Can't `bind-key` Ctrl+3 to '#'
The following is unable to bind the character "#" to pressing Ctrl+3 in tmux
# ~/.tmux.conf
unbind-key -T root C-3
bind-key -T root -N '#' C-3 send-keys '#'
# in a tmux session
tmux source-...
1
vote
0
answers
76
views
Change pane size with iterm2 and apple script
I'm trying to operate on iTerm2 like tmux, so I started from itermocil script. I need a two small pane on the top, one large horizontal pane in the bottom, so I first added this layout
elif ...
0
votes
1
answer
95
views
iterm2 tmux integration jumps to beginning of line when switching windows
I am using tmux integration for iterm2 (macos client sshing to linux server), and I am encountering an annoying behavior where the cursor jumps to the beginning of the line every time I switch tmux ...
0
votes
1
answer
73
views
byobu won't cycle through search results
I'm having an inconsistent issue with byobu search for last several months. For some searches, it will only navigate to the first backwards result. I have not determined when this breaks or when it ...