/
.tmux.conf
71 lines (54 loc) · 2.2 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
# prefixキーをC-lに変更する
set -g prefix C-l
# C-bのキーバインドを解除する
unbind C-b
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
# キャッシュサイズの設定
set-option -g history-limit 3000
# 設定ファイルをリロードする
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# | でペインを縦に分割する
bind | split-window -h -c "#{pane_current_path}"
# - でペインを横に分割する
bind - split-window -v -c "#{pane_current_path}"
# Vimのキーバインドでペインを移動する
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 :+
# マウス操作を有効にする
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
# 256色端末を使用
set -g default-terminal "screen-256color"
# ペインボーダーの色を設定
set -g pane-active-border-style "fg=#454b68"
set -g pane-border-style "fg=#6b7089"
# 24 hour clock
setw -g clock-mode-style 24
# ステータスバーの設定
## 背景色の設定
set -g status-style "none,fg=#c6c8d1,bg=#1e2132"
## 現在のウィンドウを目立たせる
setw -g window-status-current-style "bold,fg=#16171e,bg=#d1d2d3"
## 右パネルを設定する
set -g status-right '#[fg=#c6c8d1,bg=#1e2132][%Y-%m-%d(%a) %H:%M:%S]'
## リフレッシュの間隔を設定する(デフォルト 15秒)
set -g status-interval 1
## ステータスバーを上部に表示する
set -g status-position top
# 新規ウィンドウでディレクトリを保持、新規ウィンドウは今いるウィンドウの次に挿入
bind c new-window -ac "#{pane_current_path}"
# ウィンドウの番号が飛ばないように設定
set-option -g renumber-windows on
# ウィンドウの名前をディレクトリ名に変更
set-option -g status-interval 1
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'