-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
78 lines (59 loc) · 1.97 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
set -g default-terminal "screen-256color-italic"
set-option -ga terminal-overrides ",*256col*:Tc"
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
set-option -g status-bg colour235 #base02
set-option -g status-bg black #base02
set-option -g status-fg colour136 #yellow
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-left ''
set-option -g status-left '#[fg=green][#[bg=default,fg=cyan]#S#[fg=green]]'
set-option -g status-right ''
# Start numbering at 1
set -g base-index 1
set -g pane-base-index 1
# Allows for faster key repetition
set -s escape-time 0
# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix
# Vi copypaste mode
set-window-option -g mode-keys vi
# bind-key -t vi-copy 'v' begin-selection
# bind-key -t vi-copy 'y' copy-selection
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C-h previous-window
bind C-l next-window
# reload config
# unbind r
bind C-r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# quick pane cycling
unbind ^b
bind ^b select-pane -t :.+
# color
set -g default-terminal "screen-256color"
# Rebind pane splitting
bind-key | split-window -h
bind-key \ split-window -h
bind-key - split-window -v
# Restore ctrl+left and ctrl+right
set-window-option -g xterm-keys on
# show full current path on left
set -g status-left-length 100
############
## History
############
set-option -g history-limit 100000
# clipboard
# set-option -g default-command "tmux rename-window zsh; reattach-to-user-namespace -l zsh"
if-shell "uname | grep -q Darwin" "set-option -g default-command \"tmux rename-window zsh; reattach-to-user-namespace -l zsh\""
# set-option -g default-shell /bin/zsh