-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.tmux.conf
More file actions
110 lines (76 loc) · 2.67 KB
/
Copy path.tmux.conf
File metadata and controls
110 lines (76 loc) · 2.67 KB
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
107
108
109
110
# I'm too used to screen
set-option -g prefix C-a
# fix wait time for escape (helps with tmux and vim)
set -s escape-time 0
# don't start a login shell
set-option -g default-command $SHELL
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind L swap-window -t -1
bind R swap-window -t +1
# To help with sticky ctrl fingers
bind C-n next-window
bind C-p previous-window
# start indexing windows from 1, just like tabs
set -g base-index 1
set -g default-terminal "tmux-256color"
set -g mouse on
# window titles
set -g set-titles on
# display visible indicator of each pane
bind-key w display-panes
bind S source-file ~/.tmux.conf \; display-message "tmux config reloaded"
# swap panes
bind-key -r J swap-pane -D
bind-key -r K swap-pane -U
# pane to window, vice-versa
bind-key b break-pane
bind-key B command-prompt -p "join pane from:" "join-pane -s '%%'"
# copying and pasting
bind-key [ copy-mode
bind-key ] paste-buffer -s \015
# choose buffer to paste interactively (default key was '=')
bind-key = choose-buffer
# delete the most recently copied buffer of text (default key was '-')
bind-key - delete-buffer
# Go to begining of line with Ctr + a a
bind-key a send-prefix
# Screen-like key bindings
# new window
bind-key c new-window -c "#{pane_current_path}"
# displays
bind-key * list-clients
# use better mnemonics for horizontal/vertical splits
bind-key _ split-window -v -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
# resize panes like vim
bind-key -r < resize-pane -L 10
bind-key -r > resize-pane -R 10
bind-key -r + resize-pane -U 10
bind-key -r - resize-pane -D 10
# Statusbar settings
# use vi-style key bindings in the status line
set -g status-keys vi
# amount of time for which status line messages and other indicators
# are displayed. time is in milliseconds.
set -g display-time 2000
# Default to process, but let applications control naming
set -g automatic-rename on
set -g allow-rename on
# default statusbar colors
set -g status-style fg=colour15,bg=black
setw -g window-status-style fg=colour15,bg=black
setw -g window-status-current-style fg=black,bg=cyan,bold
setw -g window-status-current-format '► #[fg=white]#I#[default] #{=|20:window_name}#F '
setw -g window-status-format '#[fg=yellow]#I#[default] #{=|20:window_name}#F'
# pane divider colors
set -g pane-border-style fg=white,bg=black
set -g pane-active-border-style fg=yellow,bg=blue
set-option -g status-left '#S# #(whoami)@#H# |'
set-option -g status-right '#[fg=colour200]#[default] #[fg=blue]#(date "+%Y/%m/%d %H:%M")#[default] '
set-option -g status-right-length 1000
set-option -g status-left-length 60
# vim:ft=sh