Created
September 17, 2018 18:00
-
-
Save mmartin101/4c0e1338678f4e49ba8021af9f0b6dcd to your computer and use it in GitHub Desktop.
simple tmux config
This file contains hidden or 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
# C-b is not acceptable -- Vim uses it | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
# set window split | |
bind-key | split-window -h | |
bind-key - split-window | |
# Rather than constraining window size to the maximum size of any client | |
# connected to the *session*, constrain window size to the maximum size of any | |
# client connected to *that window*. Much more reasonable. | |
setw -g aggressive-resize on | |
# Activity monitoring | |
setw -g monitor-activity on | |
set -g visual-activity on | |
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'" | |
# reload config | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
# auto window rename | |
set-window-option -g automatic-rename | |
# color | |
set -g default-terminal "screen-256color" | |
setw -g mode-keys vi | |
bind-key -T edit-mode-vi Up send-keys -X history-up | |
bind-key -T edit-mode-vi Down send-keys -X history-down | |
bind-key -T copy-mode-vi v send -X begin-selection | |
bind-key -T copy-mode-vi [ send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi ] send-keys -X copy-selection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment