-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
63 lines (48 loc) · 1.58 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
# define default shell
# set -g default-command /bin/bash
# start Tmux with 256 colors support, set history size
set -g default-terminal screen-256color
set -g history-limit 10000
# start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# faster key repetition
set -sg escape-time 1
# activity monitoring
set -g visual-activity on
setw -g monitor-activity on
# status bar configuration
set -g status-utf8 on
set -g status-interval 30
set -g status-left-length 40
set -g status-left " Session: #[fg=green]#S#[default] | Tab: #[fg=green]#I#[default] | Pane: #[fg=green]#P#[default] |"
set -g status-right "#[fg=magenta]#H#[default] | %m/%d/%y %I:%M "
# enable the mouse
set -g mouse on
# set prefix to C-a
set-option -g prefix C-a
unbind C-b
# use C-a a <command> to send commands
# to a Tmux session inside another Tmux session
bind-key C-a send-prefix
# Reload source file
bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"
# move X clipboard into Tmux paste buffer and back
bind C-p run "tmux set-buffer \"$(xclip -o -selection \"clipboard\")\"; tmux paste-buffer"
bind C-y run "tmux show-buffer | xclip -i -selection \"clipboard\""
# status bar
set -g status-bg colour236
set -g status-fg white
set -g status-attr default
# pane border
set -g pane-border-fg colour15
set -g pane-active-border-fg colour15
# current window
setw -g window-status-current-fg green
setw -g window-status-current-bg default
# bell window
setw -g window-status-activity-attr bold
setw -g window-status-activity-fg white
setw -g window-status-activity-bg colour236
# use vi mode
setw -g mode-keys vi