Created
September 1, 2016 07:17
-
-
Save NotFounds/996798721a55af6a1c3ad4a6a7b5fd5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prefixキーをC-fに変更 | |
set -g prefix C-f | |
# 色の設定 | |
set-option -g default-terminal screen-256color | |
set -g terminal-overrides 'xterm:colors=256' | |
# ステータスバーをトップに配置する | |
set-option -g status-position top | |
# 左右のステータスバーの長さを決定する | |
set-option -g status-left-length 90 | |
set-option -g status-right-length 90 | |
# #H => マシン名 | |
# #P => ペイン番号 | |
# 最左に表示 | |
set-option -g status-left '#H:[#P]' | |
# 現在時刻 | |
# 最右に表示 | |
set-option -g status-right '[%Y-%m-%d(%a) %H:%M:%S]' | |
# ステータスバーを Utf-8 に対応 | |
set-option -g status-utf8 on | |
# ステータスバーを1秒毎に描画し直す | |
set-option -g status-interval 1 | |
# センタライズ(主にウィンドウ番号など) | |
set-option -g status-justify centre | |
# Vi キーバインド | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
set-window-option -g mode-keys vi | |
# Prefix+v でコピーモード開始 | |
bind-key v copy-mode \; display "Copy mode!" | |
#bind-key -t vi-copy v begin-selection | |
# Prefix+Enter/y でコピー | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# Prefix+p でペースト | |
# クリップボードにも保存されているので Cmd-v でもペースト可能 | |
bind-key p paste-buffer | |
# マウスを使えるように | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment