Skip to content

Commit 39d46c3

Browse files
committed
tmux: bind q to no-op to gracefully exit prefix mode
1 parent cc10668 commit 39d46c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tmux/tmux.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ bind - split-window -v -c "#{pane_current_path}"
5151
# reload config file (with confirm-before)
5252
bind r confirm-before -y -p "Reload `~/.tmux.conf`? (Y/n)" "source-file ~/.tmux.conf ; display-message \"Reloaded .tmux.conf\""
5353

54+
# By default 'C-b'-q is used to show pane numbers, but this is not very useful,
55+
# so I'm remapping it to what is essentially a no-op to make it easy to "exit"
56+
# the prefix context.
57+
bind q refresh-client
58+
5459
# Enable mouse mode (tmux 2.1 and above).
5560
set -g mouse on
5661

0 commit comments

Comments
 (0)