-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
55 lines (46 loc) · 1.61 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
set-option -g default-command ""
# キーストロークのディレイを減らす
set -sg escape-time 1
# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# マウス操作を有効にする
set-option -g mouse on
# 256色端末を使用する
set -g default-terminal "screen-256color"
# ステータスバーの色を設定する
set -g status-fg white
set -g status-bg black
set -g status-left ""
set -g status-right "#[fg=cyan] session #S"
## リフレッシュの間隔を設定する(デフォルト 15秒)
set -g status-interval 1
set -sg escape-time 1
## move window list to left
set -g status-justify left
# change window-status
set -g window-status-current-format " #[fg=cyan]#{?client_prefix,#[bg=color3],}window #I "
set -g window-status-format " #[fg=grey]w#I/#W "
set -g visual-activity off
set -g monitor-activity off
# window history limit
set-option -g history-limit 10000
# renumber when close window
set -g renumber-windows on
# copy paste
set-window-option -g mode-keys vi
if-shell -b '[ "$(uname)" = "Linux" ]' {
set -s copy-command "xsel --clipboard --input"
}
if-shell -b '[ "$(uname)" = "Darwin" ]' {
set -s copy-command "pbcopy"
}
set -s set-clipboard off
bind -Tcopy-mode-vi v send -X begin-selection
bind -Tcopy-mode-vi y send -X copy-pipe-and-cancel
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel
set -g pane-border-status bottom
set -g pane-active-border-style "fg=cyan"
set -g pane-border-style "fg=grey"
set -g pane-border-format " #{pane_current_path}/ "
bind-key -T prefix \; select-pane -t :.-
bind-key -T prefix C-o select-pane -t :.+