-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
60 lines (54 loc) · 2.74 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
# 基本設定
set -g bell-action none # 全てのベルを無視
set -s escape-time 0 # ESCキーの反応を早くする
set -g mode-keys vi # コピーモードのキーバインドをviに
# キーバインドをscreenライクに
unbind C-b
set -g prefix C-a
bind r source-file ~/.tmux.conf \; display "reloaded" # 設定をリロード
bind C-a last-window # 直前のウィンドウに移動
bind n command-prompt "rename-window %%" # タイトル変更
bind a send-prefix # Ctr+a aでCtr+a
bind C-q confirm-before 'kill-server' # tmux終了
bind q confirm-before 'kill-session' # セッション終了
bind K kill-window # ウィンドウ終了
bind c new-window # ウィンドウ作成
bind d detach # デタッチ
bind w choose-window # ウィンドウ選択
bind s choose-session # セッション選択画面
bind Space next-window # 次のウィンドウに移動
bind i display-panes # ペイン番号表示
bind b break-pane # 選択中のペインをウィンドウに分離
bind C-p split-window -v \; select-layout even-vertical # ペインの横分割かつ均等に窓分割
bind C-\\ split-window -h \; select-layout even-horizontal # ペインの縦分割かつ均等に窓分割
bind - split-window -v # ペインの横分割
bind \\ split-window -h # ペインの縦分割
# ペインの移動
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# ペインのリサイズ
bind C-h resize-pane -L 5
bind C-j resize-pane -D 5
bind C-k resize-pane -U 5
bind C-l resize-pane -R 5
# 一般設定
set-option -g history-limit 100000 # バッファの上限
# ステータスライン
set-option -g status on
set -g status-style bg=colour201
set-option -g status-interval 2 # ステータスライン更新間隔[秒]
#set-option -g status-utf8 on
set-option -g status-justify "left"
set-option -g status-left-length 100
set-option -g status-right-length 120
#set-option -g status-left "#(~/dotfiles/tmux/tmux-powerline/powerline.sh left)"
#set-option -g status-right "#(~/dotfiles/tmux/tmux-powerline/powerline.sh right)"
set-window-option -g window-status-current-format "#[fg=colour235, bg=colour27]<<<#[fg=colour255, bg=colour27]#I>>> [[[ #W ]]] #[fg=colour27, bg=colour235]"
# 色
set -g message-style bg=colour255,fg=colour000
set -g pane-active-border-style bg=colour000,fg=colour255
set-option -g default-shell $SHELL
# MacOS固有の設定
set -g default-command "which reattach-to-user-namespace >/dev/null 2>&1 && reattach-to-user-namespace -l $SHELL || $SHELL"