-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
89 lines (70 loc) · 2.64 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Use 256 colors as much as possible
set -g default-terminal "xterm-256color"
# Use envImprovement zsh by default
set-option -g default-command "zsh"
# keep 10000 lines in the scrollback buffer
set -g history-limit 10000
##### from github.com/shapeshed/dotfiles/blob/master/tmuxrc
# Reload config file
unbind r
bind r source-file ~/.tmux.conf
# start window indexing at one instead of zero
set -g base-index 1
setw -g monitor-activity on # Highlight windows with activity
set -g visual-activity off # but don't cover the status line with activity updates
# Use "v" and "s" to do vertical/horizontal splits, like vim
bind s split-window -v
bind v split-window -h
# Use the vim motion keys to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use vim motion keys while in copy mode
setw -g mode-keys vi
# Use the arrow keys to resize
# the number at the end is how much the pane will be resized,
# and 1 is fairly small -- you might want to tweak this.
bind-key -n M-Left resize-pane -L 2
bind-key -n M-Right resize-pane -R 2
bind-key -n M-Down resize-pane -D 2
bind-key -n M-Up resize-pane -U 2
# ctrl+Home/End cycles through windows like tabs in everything else
bind-key -n C-End next
bind-key -n C-Home prev
bind-key -n C-k clear-history
##### from jasonwryan's tmux conf
# confirm before killing a window or the server
bind-key K confirm kill-server
##### Visual stuff
## Custom status bar
set -g status-bg default
set -g status-fg white
set -g status-attr bright
# Default window title config
set -g window-status-format " #I #W "
set-window-option -g window-status-fg blue
set-window-option -g window-status-bg default
set-window-option -g window-status-attr bright
# Active window title config
set -g window-status-current-format "[#I #W]"
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-bg colour3
set-window-option -g window-status-current-attr dim
# Window with activity config
set-window-option -g window-status-activity-fg black
set-window-option -g window-status-activity-bg colour12
set-window-option -g window-status-activity-attr dim
# Pane divider colors
set -g pane-border-bg default
set -g pane-border-fg colour240
set -g pane-active-border-bg default
set -g pane-active-border-fg colour10
# Status bar content
set -g status-interval 2
set -g status-left ""
set -g status-right-length 60
set -g status-right "#[fg=colour00]#[bg=colour12] #h #[bg=colour13] #[bg=colour3] #[bg=colour2] #(date +'%b %d %I:%M') "
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"