In tmux you can switch to window 2 with prefix_key + 2. I'd like to press rather prefix_key + u.
I tried in .tmux.conf this:
bind-key u 2
and this:
bind-key u select-window -t 2
Which doesn't work. Is it possible to create such mapping?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityYou need to include a colon to select based on index. Try this:
bind-key u select-window -t :2
tmux
instances share the same tmux session, _.tmux.conf is only read when the session is started. Make sure that the tmux list-sessions
list is empty, or explicitly run source-file ~/.tmux.conf
after starting tmux
.