Skip to content

Instantly share code, notes, and snippets.

@nchapon
Created November 25, 2015 15:17
Show Gist options
  • Save nchapon/48c83102cb57346e529d to your computer and use it in GitHub Desktop.
Save nchapon/48c83102cb57346e529d to your computer and use it in GitHub Desktop.
# Bindings de keys
set -g prefix C-a
# Free the original key binding
unbind C-b
# Setting the delay between the prefix and command
set -sg escape-time 1
# Ensure that we can send Ctrl-A to other apps
bind C-a send-prefix
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
set -gw pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Windows navigation with Maj + Arrows
bind -n S-Left previous-window
bind -n S-Right next-window
# Pane navigation with Alt + Arrows
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
# Window Splitting vertical | and horizontal -
unbind %
bind | split-window -h
bind - split-window -v
# History limit
set-option history-limit 16000
# 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
# set the status line's colors
set -g status-fg white
set -g status-bg black
# set the color of the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# set colors for the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# pane colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# Command / message line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment