-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux_conf_mini
71 lines (56 loc) · 1.75 KB
/
tmux_conf_mini
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
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# For nested tmux sessions
bind-key a send-prefix
bind-key -n C-q send-prefix
# Start window and pane indices at 1
set -g base-index 1
set -g pane-base-index 1
# Status bar styling and content
set -g status-left '#S '
set -g window-status-current-bg colour63 # purple
set -g status-style "fg=default,bg=colour237"
set -g status-left-style "fg=default,bg=colour237"
# Status Bar Right
set -g status-right "#H | %Y-%m-%d %H:%M"
# Toggle Status Bar
bind-key b set -g status
# Reload key
unbind r
bind r source-file ~/.tmux.conf
# Set the Esc-Wait off, so vim works properly
set-option -sg escape-time 0
set -g default-terminal "screen-256color"
set -g history-limit 100000
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
# faster shortcuts / lazy control
bind ^N next-window
bind ^P previous-window
bind ^S choose-tree
bind ^[ copy-mode
set-option buffer-limit 10
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
bind < resize-pane -L 4
bind > resize-pane -R 4
bind - resize-pane -D 4
bind + resize-pane -U 4
# Setup 'v' to begin selection as in Vim
bind-key -Tcopy-mode-vi v send -X begin-selection
bind-key -Tcopy-mode-vi V send -X begin-selection
# bind-key -Tcopy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# Make new windows start in the same directory as the current window
bind-key c new-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key "\"" split-window -c "#{pane_current_path}"