Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Initial setup
- set -g default-terminal xterm-256color
- set -g status-keys vi
- # Prefix
- unbind C-b
- set-option -g prefix C-a
- bind C-a send-prefix
- bind C-a send-key C-a
- set -g base-index 1
- # Easy config reload
- bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
- # Easy clear history
- bind-key L clear-history
- # Lengthen the amount of time status messages are displayed
- set-option -g display-time 2000
- set-option -g display-panes-time 3000
- # Set the base-index to 1 rather than 0
- set -g base-index 1
- set-window-option -g pane-base-index 1
- # Automatically set window title
- set-window-option -g automatic-rename on
- set-option -g set-titles on
- # Scrollback / pastebuffer
- # Vim-style copy/paste
- unbind [
- bind y copy-mode
- unbind p
- bind p paste-buffer
- bind -t vi-copy v begin-selection
- bind -t vi-copy y copy-selection
- bind -t vi-copy Escape cancel
- # 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
- # Double press <prefix> to move to last window
- bind-key C-b last-window
- # No delay for escape key press
- set -sg escape-time 0
- # Window activity monitor
- setw -g monitor-activity on
- set -g visual-activity on
- # Mouse Mode
- set -g mouse on
- set -g mouse-resize-pane on
- set -g mouse-select-pane on
- set -g mouse-select-window on
- set -g history-limit 10000
- # Color scheme (Cobalt)
- # default statusbar colors
- set-option -g status-fg white
- set-option -g status-bg cyan
- # active window title colors
- set-window-option -g window-status-current-fg red
- set-window-option -g window-status-current-bg yellow
- # pane border
- set-option -g pane-border-fg cyan
- set-option -g pane-active-border-fg red
- # pane number display
- set-option -g display-panes-active-colour red
- set-option -g display-panes-colour cyan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement