Skip to main content

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.

300 votes
8 answers
169k views

How to create a new window on the current directory in tmux?

Is is possible to open a new-window with its working directory set to the one I am currently in. I am using zsh, if it matters.
-1 votes
1 answer
21 views

wezterm > tmux > nvim colors not forwarded through tmux correctly

I'm currently having the problem that the colors are not forwarded correctly from nvim through tmux to wezterm. I think tmux is to blame since the colors work like expected when I invoke nvim from ...
5 votes
2 answers
2k views

How to stop marking while in tmux copy-mode?

I want to mark and copy text, and then stay in copy-mode with the marker off, permitting me to move up/down without marking new text (see below). But after marking text and pressing space or y to ...
48 votes
8 answers
48k views

tmux exits immediately after starting

I'm trying to start with tmux but am failing to even run it. Immediately after starting it exits, similar to this question. It happens both without a .tmux.conf, and (following some examples) with ...
5 votes
3 answers
8k views

In tmux, how to set shortcut for 'copy mode'?

I am using tmux and I found that entering copy mode is really tedious: Ctrl-a + [ while [ is not on the home row. I am thinking about creating a shortcut for it, e.g. F4, so I can reach it with one ...
8 votes
3 answers
2k views

Is it possible to style tmux on a per-session basis?

I set up 2 tmux sessions to work on different parts of a project (switching back and forth frequently). As their layout are pretty similar, I would like to set different status-bar color to help me ...
17 votes
2 answers
14k views

How to execute a command by default starting tmux?

I need to execute a command by default when tmux start a new session. I need to start by default in a folder when session start.
3 votes
2 answers
8k views

Vim Mode copy-paste not working on Tmux

I am new at using Tmux. I have seen that it is quite difficult to copy-paste inside Tmux. So I searched for an easier method. Some sites suggested that I should use vim mode as I am quite familiar ...
0 votes
1 answer
2k views

terminal in Tmux is 256color but vim isn't

Recently I installed tmux on my Ubuntu 16.04. The terminal screen in tmux shows 256 color correctly however when I opened vim within tmux, the color was different from what it showed when it was run ...
1 vote
1 answer
50 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 ...
2 votes
1 answer
3k views

tmux up arrow not working properly

System: ubuntu 20.04 Linux 5.13.0-39-generic tmux 3.0a Problem: While using tmux, any directly attached ssh session from my host I establish, I can no longer use the up arrow, it is not recgonized ...
37 votes
7 answers
62k views

Having tmux load by default when a zsh terminal is launched

My current workflow is: CTRL+SHIFT+T to launch a new terminal window. That starts a new zsh terminal. Type tmux to start tmux. How can I have tmux load by default with a new terminal window?
0 votes
1 answer
22 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
45 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 ...
2 votes
1 answer
2k views

Tmux horizontal split isn't working, instead it brings up a weird menu

So I use ctrl + a (bound to a instead of b), and I try to ctrl + a and release then type in SHIFT + ' which is " so ctrl + a + " like the horizontal split should in theory work. When I do ...

15 30 50 per page
1
2 3 4 5
91