-
Notifications
You must be signed in to change notification settings - Fork 5
/
.tmux.conf
75 lines (57 loc) · 1.39 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
# -------------
# Configuration
# -------------
# colors
set-option -g default-terminal "screen-256color"
# so much history
set -g history-limit 10000
# order windows from 1 (0 is far away)
set -g base-index 1
# keep window names
set-option -g allow-rename off
# fast command sequences
set -s escape-time 0
# vim bindings
setw -g mode-keys vi
# keep numbering windows
set-option -g renumber-windows on
# xterm key bindings
# setw -g xterm-keys on
# sync environment variables
set -g update-environment -r
# --------
# Bindings
# --------
# C-a prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split to same dir
bind \ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# vim-style window navigation
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
# alternate windows
bind-key C-a last-window
# reload config
bind r source-file ~/.tmux.conf
# ------
# Status
# ------
set -g set-titles on
set -g set-titles-string '#(whoami)@#h'
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]::"
set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'