Skip to content

Instantly share code, notes, and snippets.

@krainboltgreene
Created May 2, 2011 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krainboltgreene/951221 to your computer and use it in GitHub Desktop.
Save krainboltgreene/951221 to your computer and use it in GitHub Desktop.
#= Key Bindings
unbind-key -a
set-option -g prefix "`"
bind-key "`" send-prefix
## bind-key C-M-c new-server
bind-key C-c new-session
## bind-key M-c new-pane
bind-key c new-window
bind-key C-M-l choose-client
bind-key C-l choose-session
bind-key M-l list-panes
bind-key l choose-window
bind-key C-M-s command-prompt "select-session -d -t %1"
# bind-key C-M-"1" attach-session -d -t 1
# bind-key C-M-"2" attach-session -d -t 2
# bind-key C-M-"3" attach-session -d -t 3
# bind-key C-M-"4" attach-session -d -t 4
# bind-key C-M-"5" attach-session -d -t 5
# bind-key C-M-"6" attach-session -d -t 6
# bind-key C-M-"7" attach-session -d -t 7
# bind-key C-M-"8" attach-session -d -t 8
# bind-key C-M-"9" attach-session -d -t 9
# bind-key C-M-"0" attach-session -d -t 10
bind-key M-s command-prompt "select-pane -t %1"
bind-key M-1 select-pane -t 1
bind-key M-2 select-pane -t 2
bind-key M-3 select-pane -t 3
bind-key M-4 select-pane -t 4
bind-key M-5 select-pane -t 5
bind-key M-6 select-pane -t 6
bind-key M-7 select-pane -t 7
bind-key M-8 select-pane -t 8
bind-key M-9 select-pane -t 9
bind-key M-0 select-pane -t 10
bind-key s command-prompt "select-window -t %1"
bind-key 1 select-window -t 1
bind-key 2 select-window -t 2
bind-key 3 select-window -t 3
bind-key 4 select-window -t 4
bind-key 5 select-window -t 5
bind-key 6 select-window -t 6
bind-key 7 select-window -t 7
bind-key 8 select-window -t 8
bind-key 9 select-window -t 9
bind-key 0 select-window -t 10
bind-key C-n command-prompt "rename-session -t %1"
bind-key n command-prompt "rename-window -t %1"
bind-key "-" split-window -v -p 50
bind-key "|" split-window -h -p 50
bind-key d detach-client
bind-key C-M-x confirm-before kill-server
bind-key C-x confirm-before kill-session
bind-key M-x confirm-before kill-pane
bind-key x confirm-before kill-window
bind-key "." next-window
bind-key "," previous-window
bind-key "/" last-window
#= Window Options
set-window-option -g mode-mouse on
set-window-option -g monitor-activity on
#= Server Options
set-option -s exit-unattached on
set-option -g visual-activity on
#= Session Options
set-option -g default-command "reload && rvm reload"
set-option -g history-limit 100000
#== Status Line Options
set-option -g status on
set-option -g status-utf8 on
# set-option -g status-attr ATTRIBUTE, ATTRIBUTE, ATTRIBUTE
# set-option -g status-bg "HEXCOLOR"
# set-option -g status-fg "HEXCOLOR"
# set-option -g status-justify [left | centre | right]
# Sets the background color
# set-option -g message-bg "HEXCOLOR"
# Sets the foreground color
# set-option -g message-fg "HEXCOLOR"
# Gives the message line attributes
# set-option -g message-attr ATTRIBUTE, ATTRIBUTE, ATTRIBUTE
# Sets the limit on backlog
set-option -g message-limit 10000
#= Pane Options
set-option -g base-index 1
# set-option -g pane-active-border-bg "HEXCOLOR"
# set-option -g pane-active-border-fg "HEXCOLOR"
# set-option -g pane-border-bg "HEXCOLOR"
# set-option -g pane-border-fg "HEXCOLOR"
set-option -g mouse-select-pane on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment