-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
89 lines (67 loc) · 2.05 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
78
79
80
81
82
83
84
85
86
87
88
89
# shell
set -g default-command /usr/bin/zsh
set -g default-shell /usr/bin/zsh
# start with window 1 (instead of 0)
set -g base-index 1
# start with pane 1
set -g pane-base-index 1
# source config file
bind r source-file ~/.tmux.conf
# prefix ` (backtick)
unbind C-b
set -g prefix `
bind ` send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# colors
tm_color_active=colour208
tm_color_inactive=colour241
tm_color_feature=colour142
tm_color_bg=colour234
# status bar
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-attr dim
set-window-option -g window-status-format " #I: #W "
set-window-option -g window-status-current-format " #I: #W "
set-window-option -g status-left " #S "
tm_host="#[fg=$tm_color_feature,bold]#H"
tm_clock="#[fg=$tm_color_feature]%R #[fg=$tm_color_inactive](%d %b)"
#set -g status-left "#[fg=Green]#(whoami)#[fg=white]@#[fb=blue]#(hostname -s)"
#set -g status-left-length 90
set -g status-right-length 60
set -g status-justify left
set -g status-right $tm_clock' '$tm_host
#set -g status-right '#[fg=white]%a %d %b %R #H'
# visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# alt-arrows switching
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# select panel with mouse
#set-option -g mouse-select-pane on
# Useful in copy mode
#setw -g mode-mouse on
set-window-option -g mouse off
# Scroll history
set -g history-limit 30000
# Highlight active window
set-window-option -g window-status-current-bg blue
# don't rename windows automatically
set-option -g allow-rename off
# visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# Allows for faster key repetition
set -s escape-time 0
# title bar
#set -g set-titles on
#set -g set-titles-string '#(whoami) :: #h :: #(curl ipecho.net/plain;echo)'