Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (49 sloc) 1.936 kb
a9dac05 @tpope Tmux updates
authored
1 set-option -g prefix C-z
2 set-option -g prefix2 C-g
6aa60db @tpope Bankruptcy commit
authored
3 set-window-option -g alternate-screen off
4 set-option -g default-terminal "screen-256color"
a9dac05 @tpope Tmux updates
authored
5 set-option -g mouse-resize-pane on
6 set-option -g mouse-select-pane on
7 set-option -g mouse-select-window on
4b10b9f @tpope Make it a little easier to run tmux
authored
8 set-option -g set-titles on
a9dac05 @tpope Tmux updates
authored
9 set-option -g set-titles-string '#h: [#S:#W] #T'
10 set-option -g status-left '[#S@#h]'
11 set-option -g status-left-length 20
12 set-option -g status-right '"#38T"'
13 set-option -g status-right-length 40
14 set-option -g terminal-overrides 'xterm*:XT:Cc=\E]12;%p1%s\007:Cr=\E]112\007:Cs=\E[%p1%d q,rxvt-unicode*:XT:sitm@:ritm@'
15 set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY DBUS_SESSION_BUS_ADDRESS"
16 set-window-option -g mode-keys vi
17 if-shell 'tmux -V' 'set-window-option -g status-keys emacs'
18 if-shell 'tmux -V' 'set-option -g escape-time 50'
19 if-shell 'case "$(tmux -V)" in "tmux 1."[7-9]) true ;; *) false ;; esac' 'set-window-option -g wrap-search off'
4b10b9f @tpope Make it a little easier to run tmux
authored
20
a9dac05 @tpope Tmux updates
authored
21 unbind C-s
22 unbind C-q
23
24 bind C-g send-keys C-g
6aa60db @tpope Bankruptcy commit
authored
25 bind z send-keys C-z
a9dac05 @tpope Tmux updates
authored
26 bind Z suspend-client
6aa60db @tpope Bankruptcy commit
authored
27 bind C-z last-window
28 bind ` select-window -t 0
a9dac05 @tpope Tmux updates
authored
29 bind C-c new-window
30 bind h select-pane -L
31 bind C-h resize-pane -L 5
32 bind j select-pane -D
33 bind C-j resize-pane -D 5
34 bind k select-pane -U
35 bind C-k resize-pane -U 5
36 bind l select-pane -R
37 bind C-l resize-pane -R 5
38 bind _ resize-pane -Z
39 bind H join-pane -b -h -t !
40 bind J join-pane -t !
41 bind @ join-pane -t !
42 bind K kill-pane
43
44 bind R source ~/.tmux.conf
45 bind y run "tmux show-buffer | if [ -x /usr/bin/pbcopy ]; then pbcopy; else xclip -i; fi"
46 # bind -t vi-copy y copy-selection \; run "tmux show-buffer | if [ -x /usr/bin/pbcopy ]; then pbcopy; else xclip -i; fi"
47
48 bind -n S-Up copy-mode
49 bind -n S-Right next-window
50 bind -n S-Left previous-window
51 bind -n S-Down command-prompt
52 bind -n BTab select-pane -t :.+
53 if-shell 'test -f "$HOME/.tmux.conf.local"' 'source ~/.tmux.conf.local'
Something went wrong with that request. Please try again.