-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
107 lines (90 loc) · 2.96 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# unbind defaults
unbind '"'
unbind %
unbind .
unbind o
unbind C-Left
unbind C-Right
unbind C-Up
unbind C-Down
unbind Left
unbind Right
unbind Up
unbind Down
# redefine the prefix
#set -g prefix C-f
#unbind C-b
#bind C-f send-prefix
set-option -g prefix `
# by default start SHELL or fallback to sh
set -g default-command "exec ${SHELL}"
set -g default-shell /bin/sh
# relaaax :3
#set -sg repeat-time 3000
# 256 colors please - 'tmux -2'
set -g default-terminal "screen-256color"
# utf8 please - 'tmux -u'
set -g status-utf8 on
setw -g utf8 on
# copy and paste
setw -g mode-keys vi
bind -n C-PgUp copy-mode -u
bind [ copy-mode
bind ] paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
# keybinds to commands
bind / command-prompt "split-window 'exec man %%'"
bind s command-prompt "swap-window -t ':%%'"
bind m command-prompt "move-window -t '%%'"
bind r source-file "${HOME}/.tmux.conf"; display "configuration reloaded"
# move between windows
bind \; last-window
bind p select-window -t :-
bind n select-window -t :+
bind -n C-p select-window -t :-
bind -n C-n select-window -t :+
# create select resize swap panes
bind t split-window -h "exec dtach -A $HOME/.term.sock bash"
bind V split-window -h
bind v split-window -v
bind -n C-k select-pane -U
bind -n C-j select-pane -D
bind -n C-h select-pane -L
bind -n C-l select-pane -R
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind -r K resize-pane -U # bind -r C-K resize-pane -U
bind -r J resize-pane -D # bind -r C-J resize-pane -D
bind -r H resize-pane -L # bind -r C-H resize-pane -L
bind -r L resize-pane -R # bind -r C-L resize-pane -R
bind -r U swap-pane -U # bind -r K swap-pane -U
bind -r D swap-pane -D # bind -r J swap-pane -D
# statusbar text windows and colors
set -g status-left "[#S]"
set -g status-right "#(date +'%R %A:%d %b:%m') @ #h"
set -g status-bg black
set -g status-fg white
set -g status-attr default
setw -g window-status-format " #[fg=yellow]#I#[fg=white]:#[fg=default]#W "
setw -g window-status-bg default
setw -g window-status-fg white
setw -g window-status-attr default
setw -g window-status-current-format " #[fg=yellow]#I#[fg=white]:#[fg=default]#W "
setw -g window-status-current-bg green
setw -g window-status-current-fg white
setw -g window-status-current-attr bold
setw -g window-status-bell-bg red
setw -g window-status-bell-fg white
setw -g window-status-bell-attr bold
set -g message-bg black
set -g message-fg yellow
set -g message-attr default
set -g pane-border-fg black
set -g pane-active-border-fg yellow
set -g display-panes-colour yellow
set -g display-panes-active-colour green
set -g clock-mode-colour green
set -g clock-mode-style 24