Skip to content

Instantly share code, notes, and snippets.

@erubboli
Created May 25, 2012 14:25
Show Gist options
  • Save erubboli/2788408 to your computer and use it in GitHub Desktop.
Save erubboli/2788408 to your computer and use it in GitHub Desktop.
#set ctrl+a as prefix (set CAPS LOCK as CTRL)
unbind C-b
set -g prefix C-a
bind C-a send-prefix
#keys repetition
set repeat-time 0
set -s escape-time 0
#index start from 1 that is closer in the keyboard
set -g base-index 1
set -g pane-base-index 1
#reload config file
bind r source-file ~/.tmux.conf \; display "tmux.conf reloaded!"
#split windows (easy to remember!)
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
setw -g mode-keys vi
bind ` command-prompt -I '#W' "rename-window '%%'"
## Remap resizing to vim-like commands
bind -r C-h resize-pane -L 6
bind -r C-l resize-pane -R 6
bind -r C-j resize-pane -D 6
bind -r C-k resize-pane -U 6
#use mouse (uh?? really?)
#setw -g mode-mouse on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window on
setw -g monitor-activity on
set -g visual-activity on
set -g status-utf8 on
set -g status-bg black
set -g status-fg white
set -g status-justify left
set -g status-interval 1
set -g status-left-length 15
set -g status-right-length 155
set -g status-left "#[fg=white,bright,bg=blue] Session #[fg=yellow,bright,bg=blue]#S #[default] |" # session-name
set -g status-right "#(tmux-mem-cpu-load) #[fg=yellow,bright] %Y-%m-%d #[fg=green]%H:%M:%S #[default]#[fg=magenta,bright]#[default]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment