-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
92 lines (87 loc) · 3 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
90
91
92
activity-action other
assume-paste-time 1
base-index 1
bell-action any
default-command ""
default-shell "/bin/bash"
destroy-unattached off
detach-on-destroy on
display-panes-active-colour red
display-panes-colour blue
display-panes-time 1000
display-time 750
history-limit 2000
key-table "root"
lock-after-time 0
lock-command "lock -np"
message-command-style fg=yellow,bg=black
message-style fg=black,bg=yellow
mouse on
prefix C-b
prefix2 None
renumber-windows off
repeat-time 500
set-titles off
set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
silence-action other
status on
status-interval 15
status-justify left
status-keys vi
status-left "[#S] "
status-left-length 10
status-left-style default
status-position bottom
status-right " \"#{=21:pane_title}\" %H:%M %d-%b-%y"
status-right-length 40
status-right-style default
status-style fg=black,bg=green
update-environment[0] "DISPLAY"
update-environment[1] "SSH_ASKPASS"
update-environment[2] "SSH_AUTH_SOCK"
update-environment[3] "SSH_AGENT_PID"
update-environment[4] "SSH_CONNECTION"
update-environment[5] "WINDOWID"
update-environment[6] "XAUTHORITY"
visual-activity off
visual-bell off
visual-silence off
word-separators " .-_@"
# BEGIN customization
# changed 'base-index' from 0 to 1
#setw -g aggressive-resize on
# set default terminal
#set -g default-terminal "screen-256color"
#set -g default-terminal "xterm2"
# Terminal emulator window titles (will change window's title
#+ when in ssh sessions)
set -g set-titles on
#set -g set-titles-string "#T"
set -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
# reload configuration of tmux from within tmux with C-r
bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"
set -g history-limit 10000 # from https://wiki.archlinux.org/index.php/tmux
#new -n tmux xterm bash --login
set-option -g default-command bash # forces each new pane to start a bash shell and to source ~/.bashrc
set-window-option -g mode-keys vi # vi keys to move around
# vim frinedly configuration (from https://wiki.archlinux.org/index.php/tmux)
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind h select-pane -L # switch to left pane
bind l select-pane -R # switch to right pane
bind k select-pane -U # switch to pane above
bind j select-pane -D # switch to pane below
# mouse wheel scrolling (from https://wiki.archlinux.org/index.php/tmux)
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
set -g default-terminal "xterm"
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on
# Allow mouse dragging to resize panes
set -g mouse-resize-pane on
# Allow mouse to select windows
set -g mouse-select-window on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50