Skip to content

Instantly share code, notes, and snippets.

@Jiezhi
Created February 23, 2016 02:03
Show Gist options
  • Save Jiezhi/8cbdc5da5de6f6b36031 to your computer and use it in GitHub Desktop.
Save Jiezhi/8cbdc5da5de6f6b36031 to your computer and use it in GitHub Desktop.
# Remap key
# Defining an Easier Prefix
set -g prefix C-a
unbind C-b
# Changing the Default Delay
# set -sg escape-time 1
# Setting the Window and Panes Index set -g base-index 1 set -g pane-base-index 1
# Reload the Configuration with key 'r'
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Sending the prefix to other applications
bind C-a send-prefix
# Splitting Panes
bind | split-window -h
bind - split-window -v
# Remapping Movement Keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resizing Panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Handling the Mouse
set -g mouse on
#setw -g mode-mouse off
#set -g mouse-select-pane off
#set -g mouse-resize-pane off
#set -g mouse-select-window off
# display in 256 colors
set -g default-terminal "screen-256color"
# Changing the status bar colors
#
set -g status-fg white
set -g status-bg black
# Changing the Window List Colors
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# Changing Pane Divider Colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-fg white
set -g pane-active-bg yellow
# Customizing the Command Line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Customizing the Status Bar
set -g status-utf8 on
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P | "
set -g status-right "#[fg=cyan]%d %b %R"
set -g status-interval 60
# Centering the Window List
set -g status-justify centre
# Identifying Activity in Other Windows
setw -g monitor-activity on
set -g visual-activity on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment