-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
54 lines (45 loc) · 1.53 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
set -g display-time 3000
set -g status-left-length 40
if-shell "test $(echo $TERM) != vt220 -a $(echo $TERM) != wsvt25" \
"set-option -g default-terminal \"screen-256color\""
if-shell "test $(echo $TERM) == vt220" \
"set-option -g default-terminal \"vt220\""
setw -g xterm-keys on
#set -g status-left "#[fg=green]#(apm -m) min, #(sysctl -n hw.sensors.cpu0.temp0|awk '{print $1}')°C [#(sysctl -n vm.loadavg)] "
set -g status-left "#[fg=brightgreen]#[bg=green]#(sysctl -n vm.loadavg) "
set -g status-right-length 40
set -g status-right "#[fg=brightwhite]#[bg=black]%H:%M %d-%m"
set -g status-bg black
set -g status-fg white
set -g set-titles off
set -g allow-rename off
set -g pane-border-status top
set -g pane-border-format " #{pane_index} #{pane_current_command} "
set -s escape-time 0
#set-window-option -g automatic-rename off
bind-key m setw monitor-activity
bind-key S command-prompt "new-window -n %1 'ssh %1'"
if-shell "test `uname` = OpenBSD" \
"set-option -g renumber-windows on" \
"set -g mouse off"
# Vim moving
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
unbind-key u
bind-key u set synchronize-panes
unbind-key "'"
bind-key "'" last-window
set-option -g window-status-style "default"
set-window-option -g window-status-current-style "bg=black"
set-window-option -g window-status-current-style "fg=brightyellow"
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# `+r reloads the configuration
bind r source-file ~/.tmux.conf