-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·79 lines (58 loc) · 1.95 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
unbind-key 'C-b'
# set-option -g prefix `
#set-option -g prefix C-Space
set-option -g prefix M-Space
bind Space send-prefix
setw -g mode-keys vi
set-option -g history-limit 65535
# make delay shorter
set -sg escape-time 69
# for vim clip
set -g focus-events on
#### key bindings ####
# reload config file
bind r source-file ~/.tmux.conf \; display ".tmux.conf reloaded!"
# synchronize all panes in a window
bind y setw synchronize-panes
# pane movement shortcuts (same as vim)
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind H swap-pane -U
bind L swap-pane -D
# enable mouse support for switching panes/windows
# set -g mouse-utf8 on
set -g mouse on
# renumber window, or use `move-window -r` cmd
# set-option -g renumber-windows on
#### copy mode : vim ####
# set vi mode for copy mode
#setw -g mode-keys vi
set-window-option -g mode-keys vi
#set-window-option -g utf8 on
# copy mode using 'Esc'
unbind [
bind Escape copy-mode
# pane <--> windows
bind-key J command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind-key B command-prompt -p "break pane..." break-pane
# start selection with 'space' and copy using 'y'
#bind -t vi-copy 'y' copy-selection
## paste using '^y'
bind C-y paste-buffer
set-option -ga terminal-overrides ',xterm-256color:Tc'
# set-option -sa terminal-overrides ',screen-256color:RGB'
#set-option -g default-terminal "screen-256color"
set-option -g default-terminal "xterm-256color"
set-option -g status-style bg=colour235,fg=colour245
set-option -g status-position top
set-option -g renumber-windows on
bind-key M-c new-window -c "#{pane_current_path}"
bind-key M-s split-window -v -c "#{pane_current_path}"
bind-key M-v split-window -h -c "#{pane_current_path}"
#bind-key f run "tmux split-window -l 12 'bash -ci tmux_fzf_window'"
bind-key f run-shell -b tmux-switch-pane.sh
# disable alternate screen
set-option -g alternate-screen off