-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
75 lines (62 loc) · 1.99 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
############################
## Basics
############################
set -g default-terminal "screen-256color" # use 256 term for pretty colors
set -g history-limit 5000 # increase scroll-back history
setw -g mode-keys vi # use vim key bindings
set -sg escape-time 1 # decrease command delay (increases vim responsiveness)
set -g repeat-time 1000 # increase repeat time for repeatable commands
set -g base-index 1 # start window index at 1
setw -g pane-base-index 1 # start pane index at 1
# highlight window when it has new activity
setw -g monitor-activity on
set -g visual-activity on
set -g renumber-windows on # re-number windows when one is closed
###########################
# Key Bindings
###########################
# Prefix
unbind C-f
set -g prefix C-f
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind -n ® source-file ~/.tmux.conf \; display "Reloaded!"
# Panes
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n ˙ select-pane -L
bind -n ¬ select-pane -R
bind -n ∆ select-pane -D
bind -n ˚ select-pane -U
bind-key v split-window -h
bind-key s split-window -v
bind-key -n √ split-window -h
bind-key -n ß split-window -v
# quickly switch panes
unbind C-b
bind C-b select-pane -t :.+
# Clear history
unbind C-k
bind -n C-k clear-history
############################
## Theme
############################
set -g status-bg black
set -g status-fg white
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green]#S#[fg=blue] #I:#P #[default]'
set-option -g status-right '#[fg=green]#H#[default] %m/%d/%y %I:%M\
#[fg=red]#(battery discharging)#[default]#(battery charging)'
############################
## Session
############################
new
splitw -h
# Sane scrolling
bind -n Pageup copy-mode -u
#set -g mouse on
#bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"