-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
67 lines (47 loc) · 1.49 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
# Tmux settings
# Set XTerm key bindings
setw -g xterm-keys on
set -g mouse on
# Set colors
set-option -g default-terminal "screen-256color"
# Set control-a as prefix
unbind-key C-b
set -g prefix 'C-q'
# Set reload key to r
bind r source-file ~/.tmux.conf
# Count sessions start at 1
set -g base-index 1
# Use vim bindings
setw -g mode-keys vi
# Remap window navigation to vim
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi g send-keys -X copy-pipe "google"
# Set the title bar
set -g set-titles on
set -g set-titles-string '#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD)'
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-left-length 90
set -g status-right-length 60
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]#(hostname -s)#[fg=white]::#[fg=yellow]#(curl ipecho.net/plain;echo)"
set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'
# Do not confirm kill pane
bind-key x kill-pane
# Quick escape
set -s escape-time 0
#set-option -g default-command "reattach-to-user-namespace -l bash"