Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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
bind-key u select-window -t 2
Which doesn't work. Is it possible to create such mapping?
You need to include a colon to select based on index. Try this:
bind-key u select-window -t :2
Required, but never shown