Skip to content
Newer
Older
100644 60 lines (44 sloc) 1.78 KB
2ebb07a @henrik tmux falls back to bash if reattach-to-user-namespace is missing.
authored Feb 10, 2013
1 set-option -g default-command "tmux-shell-wrapper"
6fc1598 @henrik tmux: integrate with OS X pasteboard.
authored Feb 28, 2012
2
c9ee135 @henrik Fix modifier shortcuts (shift/ctrl/opt) with tmux shell/vim.
authored Mar 3, 2012
3 # Make shift+arrows, ctrl+arrows etc work in Vim.
4 set -g xterm-keys on
5
b2ba56d @henrik tmux: escape-time 0 to avoid slow ESC issues
authored Mar 4, 2012
6 # See if this fixes slow ESC issues.
7 # http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior
8 set -s escape-time 0
9
a92885f @henrik tmux: pass through prefix typed twice, cleanup
authored Mar 4, 2012
10 # Start window and pane indices at 1.
11 set -g base-index 1
12 set -g pane-base-index 1
5dae73c @henrik tmux.conf tweaks
authored Feb 26, 2012
13
a92885f @henrik tmux: pass through prefix typed twice, cleanup
authored Mar 4, 2012
14 # Status bar styling and content.
1b74c18 @henrik More tmux.conf
authored Feb 28, 2012
15 set -g status-bg black
16 set -g status-fg white
9b14e66 @henrik Fix tmux status after upgrading to tmux 2.1
authored Nov 28, 2015
17 set -g status-left '#S '
1b74c18 @henrik More tmux.conf
authored Feb 28, 2012
18
6bbd217 @henrik Show keyboard layout in tmux status bar (if written by some tool).
authored Feb 6, 2014
19 # Show keyboard layout in prompt, assuming some script writes it to that path;
20 # it's "/User/…" instead of "~" so VMs can read from their symlinked OS X host home directory.
21 set -g status-right '#(cat /Users/$USER/.keyboard_layout 2> /dev/null) | #22T | %H:%M %d-%b-%y'
22 set -g status-right-length 60
23 set -g status-interval 2
24
a92885f @henrik tmux: pass through prefix typed twice, cleanup
authored Mar 4, 2012
25 # Highlight the active window in the status bar.
1b74c18 @henrik More tmux.conf
authored Feb 28, 2012
26 set-window-option -g window-status-current-bg yellow
27 set-window-option -g window-status-current-fg black
28
a92885f @henrik tmux: pass through prefix typed twice, cleanup
authored Mar 4, 2012
29 # Don't prompt to kill panes/windows.
30 bind-key x kill-pane
31 bind-key & kill-window
32
33 # Cycle panes.
34 bind b select-pane -t :.+
14e22cd @henrik .tmux.conf: remove unused, cleanup.
authored Jun 16, 2012
35 bind C-b select-pane -t :.+
a92885f @henrik tmux: pass through prefix typed twice, cleanup
authored Mar 4, 2012
36
a9e2cc8 @henrik Tmux: maximize pane.
authored Sep 9, 2013
37 # Maximize pane, e.g. for copying.
38 bind-key z resize-pane -Z
39
14e22cd @henrik .tmux.conf: remove unused, cleanup.
authored Jun 16, 2012
40 # Reload tmux conf.
41 unbind r
42 bind r source-file ~/.tmux.conf\; display "Reloaded conf."
b411a30 @henrik tmux copy mode: vim bindings, sync to OS X clipboard.
authored Dec 31, 2013
43
44 # http://robots.thoughtbot.com/tmux-copy-paste-on-os-x-a-better-future
45
46 # Use vim keybindings in copy mode
47 setw -g mode-keys vi
48
49 # Setup 'v' to begin selection as in Vim
50 bind-key -t vi-copy v begin-selection
51 bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
52
53 # Update default binding of `Enter` to also use copy-pipe
54 unbind -t vi-copy Enter
55 bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
5a97d54 @henrik Unbreak my Ctrl+1 etc mappings in tmux 2.1
authored Dec 22, 2015
56
57 # Unbork my iTerm ctrl+1 etc mappings in tmux 2.1
58 # https://github.com/tmux/tmux/issues/159
59 set -g assume-paste-time 0
Something went wrong with that request. Please try again.