-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
103 lines (82 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
93
94
95
96
97
98
99
100
101
102
103
#Prefix is Ctrl-a
set -g prefix C-a
bind-key C-a last-window
bind-key a send-prefix
unbind C-b
#se -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
# Detach while control still pressed
bind C-d detach
# y and p as in vim
bind Escape copy-mode
#unbind p
bind C-p paste-buffer
# Keep only current pane (like vim)
bind o confirm-before -p "Kill other panes? (y/n)" "kill-pane -a"
# extra commands for interacting with the ICCCM clipboard
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
# easy-to-remember split pane commands
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
set -g default-terminal "screen-256color"
# moving between panes with vim movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#source-file ~/.tmux/session
# moving between windows with vim movement keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# moving windows with F11/F12
bind-key -n F11 previous-window
bind-key -n F12 next-window
bind p previous-window
# resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# enable mouse scrolling
#set -g mouse on
# window mode
setw -g mode-style bg=colour6
setw -g mode-style fg=yellow
# window border
set -g pane-border-style fg=yellow
set -g pane-active-border-style fg=white
set -g pane-active-border-style bg=default
# window status
setw -g window-status-format " #F#I:#W#F "
setw -g window-status-current-format " #F#I:#W#F "
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=yellow]#[fg=colour8] #W "
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=yellow]#[bg=colour14] #W "
setw -g window-status-current-style bg=colour0
setw -g window-status-current-style fg=colour11
setw -g window-status-current-style "dim"
setw -g window-status-style bg=green
setw -g window-status-style fg=black
setw -g window-status-style "reverse"
# statusbar
set -g status-position bottom
set -g status-bg colour234
set -g status-fg colour137
set -g status-left '#[fg=yellow,bold]#(whoami)@#(hostname) '
set -g status-right "#[fg=yellow,bold] #(uptime | cut -d ' ' -f 12-14) #[fg=colour233,bg=colour241,bold] %d/%m %H:%M:%S "
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style fg=yellow
setw -g window-status-current-style bg=colour238
setw -g window-status-current-style "bold"
setw -g window-status-current-format ' #[fg=yellow]#I#[fg=colour250]:#[fg=colour255]#W#[fg=yellow]#F '
setw -g window-status-style fg=yellow
setw -g window-status-style bg=colour235
setw -g window-status-style "none"
setw -g window-status-format ' #[fg=yellow]#I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
setw -g window-status-bell-style "bold"
setw -g window-status-bell-style fg=colour255
setw -g window-status-bell-style bg=colour1