Skip to content

Instantly share code, notes, and snippets.

@takp
Created March 3, 2019 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takp/dd84e396e06aa8fd29123a247ea6f6e4 to your computer and use it in GitHub Desktop.
Save takp/dd84e396e06aa8fd29123a247ea6f6e4 to your computer and use it in GitHub Desktop.
set -g prefix C-a
unbind C-b
# Split pane vertical
bind | split-window -h
# Split pane horizontal
bind - split-window -v
# キーストロークのディレイを減らす
set -sg escape-time 1
# ウィンドウのインデックスを1から始める
set -g base-index 1
# ペインのインデックスを1から始める
setw -g pane-base-index 1
# 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 :+
# マウス操作を有効にする
setw -g mouse on
# 256色端末を使用する
set -g default-terminal "screen-256color"
# ステータスバーの色を設定する
#set -g status-fg white
#set -g status-bg black
# ウィンドウリストの色を設定する
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# アクティブなウィンドウを目立たせる
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# ペインボーダーの色を設定する
set -g pane-border-fg green
set -g pane-border-bg black
# アクティブなペインを目立たせる
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment