-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
81 lines (67 loc) · 2.45 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
# Show statusbar on the top
set-option -g status-position top
set-option -g status on
set-option -g status-utf8 on
set-option -g status-interval 10
#set -ga terminal-overrides ",xterm-256color:Tc"
#set -g default-terminal "screen-256color"
#set-option -g status-justify "centre"
# Right statusbar
# set-option -g status-right-length 90
# set -g status-right '#{net_speed} | #{battery_status_bg} Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
# Left statusbar
# set-option -g status-left-length 90
# set-option -g status-left '#H:[#S]'
# Prefix key
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# reload config
bind C-e source-file ~/.tmux.conf \; display "~/.tmux.conf is reloaded!"
#ecape key delay
set -sg escape-time 0
# set only on OS X where it's required
set -g default-command "reattach-to-user-namespace -l zsh"
#set-option -g default-command 'which reattach-to-user-namespace > /dev/null 2>&1 && reattach-to-user-namespace -l $SHELL || $SHELL'
# Start window and pane count from 1
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Prefix+- で横に、Prefix+| で縦に分割(ペイン)する
bind-key | split-window -h
bind-key - split-window -v
# Prefix + Ctrl-h/l でウィンドウ切り替え
# Prefix + Ctrl-h,h,h,h,...と連打できる
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Prefix+hjkl でペイン移動
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# ペインサイズを上下左右(Prefix+JKHL)に変更
# Prefix+J,J,J,J,...と連打してリサイズ可能
bind-key -r H resize-pane -L 5
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r L resize-pane -R 5
#マウス関係の設定
set-option -g mouse on
#set -g mode-mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mouse-select-window on
# tmux plugin manager related settings
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Functional settings plugin
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-boot-options 'fullscreen'
#set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
# Statusbar enhancing plugin
#set -g @plugin 'tmux-plugins/tmux-battery'
#set -g @plugin 'tmux-plugins/tmux-net-speed'
# Initialize TMUX plugin maneger
run '~/.tmux/plugins/tpm/tpm'