Created
February 7, 2020 01:49
-
-
Save grahamcrowell/d85bd76e7c9ea5a38fd2af371b88e71c 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
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf \; display-message "Configuration reloaded" | |
# act like vim | |
set-window-option -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind-key -r C-h select-window -t :- | |
bind-key -r C-l select-window -t :+ | |
# Mouse support - set to on if you want to use the mouse | |
#setw -g mode-mouse on | |
#set -g mouse-select-pane on | |
#set -g mouse-resize-pane on | |
#set -g mouse-select-window on | |
#set -g mouse-utf8 on | |
set -g mouse on | |
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M | |
bind -n WheelDownPane select-pane -t= \; send-keys -M | |
# Set the default terminal mode to 256color mode | |
set -g default-terminal "screen-256color" | |
# enable activity alerts | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Center the window list | |
set -g status-justify centre | |
# start window index of 1 | |
set-option -g base-index 1 | |
setw -g pane-base-index 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment