Skip to content

Commit

Permalink
tmux: bind q to no-op to gracefully exit prefix mode
Browse files Browse the repository at this point in the history
  • Loading branch information
izzygomez committed Mar 14, 2024
1 parent cc10668 commit 39d46c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ bind - split-window -v -c "#{pane_current_path}"
# reload config file (with confirm-before)
bind r confirm-before -y -p "Reload `~/.tmux.conf`? (Y/n)" "source-file ~/.tmux.conf ; display-message \"Reloaded .tmux.conf\""

# By default 'C-b'-q is used to show pane numbers, but this is not very useful,
# so I'm remapping it to what is essentially a no-op to make it easy to "exit"
# the prefix context.
bind q refresh-client

# Enable mouse mode (tmux 2.1 and above).
set -g mouse on

Expand Down

0 comments on commit 39d46c3

Please sign in to comment.