-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.tmux.conf
executable file
·66 lines (50 loc) · 1.41 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
set -g default-terminal "screen-256color"
#Change prefix key to ctrl + a
unbind C-b
set -g prefix `
#last active window
#unbind l
#bind C-a last-window
#Copy mode
unbind [
bind Escape copy-mode
#use Vi mode
setw -g mode-keys vi
#make mouse useful in copy mode
setw -g mode-mouse on
#more straight forward key bindings for splitting
unbind %
bind h split-window -h
unbind '"'
bind v split-window -v
#History
set -g history-limit 1000
#Pane
#unbind o
#bind C-s down-pane
#Terminal editor emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
#Status Bar
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-left '#[fg=green]#H#[default]'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-4 /proc/loadavg)#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-bg red
# Clock
setw -g clock-mode-colour green
setw -g clock-mode-style 24
new -s SessionName -n WindowName Command
neww -n foo/bar foo
splitw -v -p 50 -t 0 bar
selectw -t 1
selectp -t 0
set-option -ga terminal-override ',rxvt-uni*:XT:Ms=\E]52;%p1%s;%p2%s\007'
set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
bind-key C-y save-buffer /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xclip"