Last active
August 29, 2015 14:12
-
-
Save kylelemons/b17cc7e9d0c7ff496710 to your computer and use it in GitHub Desktop.
TMux Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# General settings | |
# | |
# Set terminal titles | |
set -g set-titles on | |
# Expect UTF-8 | |
set -g utf8 on | |
# Enable cool mouse things | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
set -g mouse-utf8 on | |
# Size windows based on viewing clients | |
set -g aggressive-resize on | |
# Make the current window more visible | |
set -g -w window-status-current-bg blue | |
set -g -w window-status-current-fg white | |
# Renumber windows when one is deleted | |
set -g renumber-windows on | |
# Keep exiting panes alive | |
#set -g remain-on-exit on | |
#bind-key R respawn-window | |
# | |
# Keybindings | |
# | |
unbind-key C-b | |
# Set the prefix to ^A. | |
set -g prefix ^A | |
bind-key a send-prefix | |
bind-key A command-prompt "rename-window %%" | |
bind-key ^A last-window | |
bind-key k kill-pane | |
bind-key ^L refresh-client | |
bind-key | split-window -h | |
bind-key _ split-window -v | |
bind-key '"' choose-window | |
bind-key Escape copy-mode | |
# | |
# Mouse mode toggle | |
# | |
# Toggle mouse on with ^B m | |
bind m \ | |
set -g mode-mouse on \;\ | |
set -g mouse-resize-pane on \;\ | |
set -g mouse-select-pane on \;\ | |
set -g mouse-select-window on \;\ | |
display 'Mouse: ON' | |
# Toggle mouse off with ^B M | |
bind M \ | |
set -g mode-mouse off \;\ | |
set -g mouse-resize-pane off \;\ | |
set -g mouse-select-pane off \;\ | |
set -g mouse-select-window off \;\ | |
display 'Mouse: OFF' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment