Niraj Nandane
Niraj Nandane

Reputation: 1458

disabling tmux controlling

When we attach/create tmux session, we can use "control+b" and use different shortcuts for purpose like listing sessions, create new sessions etc. I don't want that to happen. How to disable the tmux shortcut when attach/create tmux session?

Upvotes: 1

Views: 3439

Answers (1)

meuh
meuh

Reputation: 12255

You can try tmux unbind-key -a to remove all key bindings. Note also that tmux attach -r gives you a readonly view of a session.

You can give many commands at the start by separating them by a semi-colon, which you must quote with backslash to avoid the shell from interpreting it. For example:

tmux new-session -s mysession\; unbind-key -a

Upvotes: 2

Related Questions