Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # use mouse on copy mode
- setw -g mode-mouse on
- # use mouse to select pane
- set -g mouse-select-pane on
- # scrollback buffer n lines
- set -g history-limit 8000
- # listen for activity on all windows
- set -g bell-action any
- # start window indexing at one instead of zero
- set -g base-index 1
- # enable wm window titles
- set -g set-titles on
- # enable auto renaming
- setw -g automatic-rename on
- # wm window title string (uses statusbar variables)
- set -g set-titles-string "tmux:#I #W"
- # Set status bar
- set -g status-interval 1
- set -g status-justify centre
- set -g status-left-length 32
- set -g status-left '#[fg=green][#[fg=white]#S#[fg=yellow]:#[fg=white]#H#[fg=green]]'
- # Inactive windows in status bar
- set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
- # Current or active window in status bar
- set-window-option -g window-status-current-format '#[bg=white,fg=black]#I:#W#[fg=red]#F'
- # Right side of status bar
- set -g status-right '#[fg=green][#[fg=white]#T#[fg=green]][#[fg=white]%Y-%m-%d #[fg=white]%H:%M#[default]#[fg=green]]'
- # look good
- set -g default-terminal "screen-256color"
- # fix copypaste board
- set-option -g default-command "reattach-to-user-namespace -l zsh"
- # remap prefix
- set -g prefix C-a
- unbind C-b
- bind C-a send-prefix
- # quick pane cycling
- unbind ^A
- bind ^A select-pane -t :.+
- bind a send-prefix
- # Remove default binding since weβre replacing
- unbind %
- bind | split-window -h
- bind - split-window -v
- # bind copy keys as vim did
- setw -g mode-keys vi
- unbind [
- bind Escape copy-mode
- unbind p
- bind p paste-buffer
- bind-key -t vi-copy 'v' begin-selection
- bind-key -t vi-copy 'y' copy-selection
- bind h select-pane -L
- bind l select-pane -R
- bind k select-pane -U
- bind j select-pane -D
- #### COLOUR
- # default statusbar colors
- set-option -g status-bg colour235 #base02
- set-option -g status-fg colour136 #yellow
- set-option -g status-attr default
- # default window title colors
- set-window-option -g window-status-fg colour244
- set-window-option -g window-status-bg default
- #set-window-option -g window-status-attr dim
- # active window title colors
- set-window-option -g window-status-current-fg colour166 #orange
- set-window-option -g window-status-current-bg default
- #set-window-option -g window-status-current-attr bright
- # pane border
- set-option -g pane-active-border-fg green
- set-option -g pane-active-border-bg black
- set-option -g pane-border-fg white
- set-option -g pane-border-bg black
- # message text
- set-option -g message-bg colour235 #base02
- set-option -g message-fg colour166 #orange
- set -g message-attr bright
- # pane number display
- set-option -g display-panes-active-colour colour33 #blue
- set-option -g display-panes-colour colour166 #orange
- # clock
- set-window-option -g clock-mode-colour colour64 #green
Add Comment
Please, Sign In to add comment