diff options
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..a798aa3 --- /dev/null +++ b/.tmux.conf | |||
@@ -0,0 +1,84 @@ | |||
1 | # Make shift+arrows, ctrl+arrows etc work in Vim. | ||
2 | set -g xterm-keys on | ||
3 | |||
4 | # See if this fixes slow ESC issues. | ||
5 | # http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior | ||
6 | set -s escape-time 0 | ||
7 | |||
8 | # Start numbering at 1 | ||
9 | set -g base-index 1 | ||
10 | set -g pane-base-index 1 | ||
11 | |||
12 | # Set status bar | ||
13 | set -g status-position bottom | ||
14 | set -g status-justify left | ||
15 | set -g status-bg black | ||
16 | set -g status-fg white | ||
17 | set -g status-attr bold | ||
18 | set -g status-left "#S " | ||
19 | set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H' | ||
20 | |||
21 | # higlight the active window in the status bar | ||
22 | set-window-option -g window-status-current-bg white | ||
23 | set-window-option -g window-status-current-fg black | ||
24 | |||
25 | setw -g window-status-current-fg red | ||
26 | setw -g window-status-current-bg white | ||
27 | setw -g window-status-current-attr bold | ||
28 | setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F ' | ||
29 | |||
30 | setw -g window-status-fg white | ||
31 | setw -g window-status-bg black | ||
32 | setw -g window-status-attr dim | ||
33 | setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F ' | ||
34 | |||
35 | # Don't prompt to kill panes/windows. TODO you will fuck this up | ||
36 | bind-key x kill-pane | ||
37 | bind-key & kill-window | ||
38 | |||
39 | # Cycle panes. | ||
40 | bind b select-pane -t :.+ | ||
41 | bind C-b select-pane -t :.+ | ||
42 | |||
43 | # More intuitive split-window mappings. | ||
44 | bind "'" split-window -h -c "#{pane_current_path}" | ||
45 | bind - split-window -v -c "#{pane_current_path}" | ||
46 | |||
47 | # Maximize pane, e.g. for copying. | ||
48 | bind-key z resize-pane -Z | ||
49 | |||
50 | # Use vim keybindings in copy mode | ||
51 | setw -g mode-keys vi | ||
52 | |||
53 | set -g default-terminal "tmux-256color" | ||
54 | set -g default-command "${SHELL}" | ||
55 | set -g set-titles on | ||
56 | set -g mouse on | ||
57 | |||
58 | # C-b is not acceptable -- Vim uses it | ||
59 | set-option -g prefix C-space | ||
60 | bind-key C-space last-window | ||
61 | |||
62 | # vim like navigation | ||
63 | bind h select-pane -L | ||
64 | bind j select-pane -D | ||
65 | bind k select-pane -U | ||
66 | bind l select-pane -R | ||
67 | |||
68 | # The panes | ||
69 | |||
70 | #set -g pane-border-bg colour235 | ||
71 | #set -g pane-border-fg colour238 | ||
72 | #set -g pane-active-border-bg colour236 | ||
73 | #set -g pane-active-border-fg colour51 | ||
74 | |||
75 | # panes | ||
76 | #set -g pane-border-fg black | ||
77 | #set -g pane-active-border-fg brightred | ||
78 | |||
79 | # Activity monitoring | ||
80 | setw -g monitor-activity on | ||
81 | set -g visual-activity on | ||
82 | |||
83 | # Example of using a shell command in the status line | ||
84 | #set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" | ||