-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.tmux.conf
87 lines (71 loc) · 2.62 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
# vim: set ft=tmux:
# General Setting
source-file /usr/share/tmux/vim-keys.conf
set-option -g prefix C-a
unbind C-b
bind C-a send-prefix
bind C-c new-window
bind X confirm-before "kill-session"
bind C-x confirm-before "kill-window"
bind x confirm-before "kill-pane"
bind o confirm-before "kill-pane -a"
bind C-k send-keys -R \; clear-history \; send-keys "C-l"
bind r source-file ~/.tmux.conf \; display-message "Reloaded!"
bind -r C-p previous-window
bind -r C-n next-window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind C-l last-window
bind | split-window -h
bind \ split-window -h
bind - split-window
bind s choose-session
##CLIPBOARD selection integration
##Requires prefix key before the command key
#Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux save-buffer - | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
## Settings
set -g default-terminal "screen-256color-s"
set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256"
set -g base-index 1
setw -g pane-base-index 1
# If you have issues scrolling with Shift-PageUp/Shift-PageDown in your terminal, try this:
set -g history-limit 1000000
set -sg escape-time 1
set-option -g mouse-resize-pane off
set-option -g mouse-select-pane off
set-option -g mouse-select-window off
set-option -g mouse-utf8 on
set-option -g status-keys emacs
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string "#H:#S.#I.#P #W #T"
# set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
set-option -g visual-bell on
setw -g monitor-activity on
set-option -g visual-activity off
setw -g monitor-content on
set-option -g visual-content off
setw -g mode-keys vi
# setw -g mode-mouse on
setw -g xterm-keys on
setw -g automatic-rename on
setw -g aggressive-resize on
setw -g clock-mode-style 24
setw -g utf8 on
# Statusbar properties.
set -g status-utf8 on
set -g status-bg blue
set -g status-fg white
set -g display-time 3000
set -g status-left-length 15
set -g status-left '#[fg=green][#[fg=red]#H#[fg=green]:#[fg=white]#S#[fg=green]]#[default]'
set -g status-interval 1
set -g status-right-length 55
set -g status-right "#[fg=cyan,bright]#H(#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#(acpi | cut -f2 -d ',')) #[fg=colour154]%Y/%m/%d %H:%M:%S #[fg=colour183]%a#[fg=red] #[default]"
setw -g window-status-format '#[fg=white,bold]#I #W#[default] '
setw -g window-status-current-format '#[fg=white,bold]#[bg=red] #I #W #[default] '