Skip to content

Instantly share code, notes, and snippets.

@heronmedeiros
Created October 27, 2012 20:44
Show Gist options
  • Save heronmedeiros/3966157 to your computer and use it in GitHub Desktop.
Save heronmedeiros/3966157 to your computer and use it in GitHub Desktop.
tmux configuration
# set C-a as PREFIX
set -g prefix C-a
# set delay for other programs
set -s escape-time 1
#set index start by 1 for window
set -g base-index 1
#set index start by 1 for panes
setw -g pane-base-index 1
#conigure r to reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
#send PREFIX to others programs
bind C-a send-prefix
#splits
bind | split-window -h
bind - split-window -v
#cycle windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
bind H select-pane -L
bind J select-pane -D
bind K select-pane -U
bind L select-pane -R
#resize
bind h resize-pane -L 5
bind j resize-pane -D 5
bind k resize-pane -U 5
bind l resize-pane -R 5
#using mouse
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
set -g default-terminal "screen-256color"
#set -g status-fg white
#set -g status-bg black
set -g message-fg white
set -g message-bg black
set -g message-attr bright
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment