-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
73 lines (58 loc) · 2.06 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
set-option -g default-shell /bin/zsh
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
setw -g mouse on
# prefixキーをC-qに変更する
set -g prefix C-q
# C-bのキーバインドを解除する
unbind C-b
bind C-q send-prefix
# command line
set -g message-style fg="white",bg="black","bright"
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
# pane
set -g pane-border-style fg="green",bg="black"
set -g pane-active-border-style fg="white",bg="yellow"
## | でペインを縦に分割する
bind v split-window -h
## - でペインを横に分割する
bind - split-window -v
## vimキーバインドでペイン/window移動, resize
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
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
# window
setw -g window-status-style fg="cyan",bg="default","dim"
setw -g window-status-current-style fg="white",bg="blue","bright"
# statusl line
set -g status-fg white
set -g status-bg black
set -g status-left-length 40
set -g status-left "#[fg=green]Session:#S #[fg=yellow]Window:#I #[fg=cyan]Pane:#P "
set -g status-right "#[fg=cyan][%Y-%m-%d(%a) %H:%M:%S]"
set -g status-justify centre
## show git info on status line
set-option -g pane-border-status bottom
set-option -g pane-border-format "#[fg=black,bg=blue] #P #(${HOME}/.tmux/tmux-pane-border.zsh '#{pane_current_path}')"
set-option -g pane-border-style fg="colour023"
set-option -g pane-active-border-style fg="blue"
# copy mode
setw -g mode-keys vi
set -g default-command "reattach-to-user-namespace -l zsh"
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi V send -X select-line
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-selection
bind -T copy-mode-vi Y send -X copy-line
bind C-p paste-buffer
set -g status-position top