-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
75 lines (54 loc) · 2.03 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
# tmux.conf
# disable login shell in tmux invocation
set -g default-command "${SHELL}"
# update window titles for iterm2 integration
set-option -g set-titles on
set-option -g set-titles-string '#T'
# history size
set -g history-limit 30000
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set prefix to ctrl+a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# use vim keybindings in copy mode
setw -g mode-keys vi
# setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
#hilight window on activity
setw -g monitor-activity on
set -g visual-activity off
# tabs
setw -g window-status-current-format "#[fg=black]#[bg=green] *#I #[bg=green,bold]#[fg=black] [#W] "
setw -g window-status-format "#[bg=blue]#[fg=black] #I #[fg=black]#[bg=blue] #W "
#setw -g window-status-attr bold,blink,reverse
setw -g window-status-style bold,blink,reverse
# statusbar
# set-option -g status-position top
#set -g status-fg white
#set -g status-bg black
set -g status-style bg=black,fg=white
set -g status-justify centre
set -g status-interval 5
# colorize messages in the command line
#set-option -g message-bg black
#set-option -g message-fg green
set-option -g message-style bg=black,fg=green
# shorten command delay
set -sg escape-time 1
# set window and pane index to 1 (0 by default)
set-option -g base-index 1
setw -g pane-base-index 1
# insert new window
bind i command-prompt -p 'Insert window at:' 'new-window -a -t %1; swap-window -t -1'
bind I command-prompt -p 'New window at:' 'new-window -t %1'
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# show host name and IP address on left side of status bar
set -g status-left-length 70
set -g status-left "#[fg=green]::#h::"
# show session name, window & pane number, date and time on right side of
# status bar
set -g status-right-length 60
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: %l:%M %p :: #(date -u | awk '{print $4}')::"