Last active
June 4, 2019 13:00
-
-
Save empeje/d9ea3b03a8bf93822720bd850fa27224 to your computer and use it in GitHub Desktop.
My Preferred tmux configuration
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
set-window-option -g mode-keys vi | |
set -g status-keys vi | |
# Easy config reload | |
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
# Mouse | |
set -g mouse on | |
# Send Prefix | |
set-option -g prefix 'C-\' | |
unbind-key 'C-\' | |
bind-key 'C-\' send-prefix | |
# Window activity monitor | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Set easier window split keys | |
bind-key v split-window -h | |
bind-key h split-window -v | |
# Use Alt-arrow keys without prefix key to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Allow the arrow key to be used immediately after changing windows. | |
set-option -g repeat-time 0 | |
# Shift arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
# Theme | |
set -g window-status-current-bg green | |
set -g window-status-current-fg black | |
set -g window-status-current-attr bold | |
set-option -g message-bg colour237 | |
set-option -g message-fg colour231 | |
set-option -g pane-border-fg green | |
set-option -g pane-active-border-fg green | |
# Status Bar | |
set -g status-justify centre | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-interval 60 | |
set -g status-left-length 30 | |
set -g status-left '#[fg=green][#S] #(whoami)@#H' | |
set -g status-right '#[fg=green]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=green]%H:%M' | |
# Copy Paste | |
bind P paste-buffer | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind-key -t vi-copy 'r' rectangle-toggle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment