master
Raw Download raw file
 1# # # # # # # # # # # # # # # # # # # # # # # # #
 2# Derived and adapted from Brian P. Hogan's book  #
 3# tmux: Productive Mouse-Free Development         #
 4# http://pragprog.com/book/bhtmux/tmux            #
 5# # # # # # # # # # # # # # # # # # # # # # # # # #
 6
 7# Setting the prefix from C-b to C-a
 8set -g prefix C-a
 9 
10# Free the original Ctrl-b prefix keybinding
11unbind C-b   
12 
13#setting the delay between prefix and command
14set -s escape-time 1
15 
16# Ensure that we can send Ctrl-A to other apps
17bind C-a send-prefix
18 
19# Set the base index for windows to 1 instead of 0
20set -g base-index 1
21 
22# Set the base index for panes to 1 instead of 0
23setw -g pane-base-index 1
24 
25# Reload the file with Prefix r
26bind r source-file ~/.tmux.conf \; display "Reloaded!"
27 
28# splitting panes
29bind | split-window -h
30bind - split-window -v
31 
32# moving between panes
33bind h select-pane -L
34bind j select-pane -D
35bind k select-pane -U
36bind l select-pane -R
37 
38# Pane resizing
39bind -r H resize-pane -L 1
40bind -r J resize-pane -D 1
41bind -r K resize-pane -U 1
42bind -r L resize-pane -R 1
43 
44# Set the default terminal mode to 256color mode
45set -g default-terminal "screen-256color"
46 
47# enable vi keys.
48setw -g mode-keys vi
49bind-key -T copy-mode-vi y send-keys -X copy-selection \; send-keys -X cancel
50 
51set -g pane-border-style fg=white,bg=black
52set -g pane-active-border-style fg=magenta,bg=black
53
54set -g status off