Last active
March 8, 2019 04:27
-
-
Save yu-orz/6ec780b834a4b7b05301 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#----------------------------------------------- | |
# Common | |
#----------------------------------------------- | |
#UTF-8 | |
#set-window-option -g utf8 on | |
#set -g status-utf8 on | |
# ESCキーのdelayを0にする(vim用) | |
set -s escape-time 0 | |
# window内の選ばれたプロセスにリネームするのを無効にする | |
set-window-option -g automatic-rename off | |
# カーソル移動をVI風に | |
set-window-option -g mode-keys vi | |
# ターミナル名を変更 | |
set -g default-terminal "screen-256color" | |
# 画面ドラッグ時にコピーモードにする | |
#set-option -g mode-mouse on | |
# マウスでペインを選択できるようにする | |
# set-option -g mouse-select-pane on | |
# マウスでウィンドウを切り替えられるようにする | |
# set-option -g mouse-select-window on | |
# マウスでリサイズできるようにする | |
# et-option -g mouse-resize-pane on | |
#----------------------------------------------- | |
# Prefixキーを変更 (Ctrl + e) | |
#----------------------------------------------- | |
unbind C-b | |
set-option -g prefix C-e | |
bind C-e send-prefix | |
#----------------------------------------------- | |
# 特殊なキーバインド | |
#----------------------------------------------- | |
# 設定ファイルをリロード | |
bind-key C-r source-file ~/.tmux.conf \; display-message "Reloaded." | |
# コピーモードでvとpでコピペ出来るように/コピーしたらクリップボード | |
bind-key -T copy-mode-vi v send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
# Update default binding of `Enter` to also use copy-pipe | |
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" | |
# | でペインを縦に分割する | |
bind | split-window -h | |
# - でペインを横に分割する | |
bind - split-window -v | |
# ペイン移動 | |
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 :+ | |
# Shift + 上下左右でペインを移動できるようにする。 | |
bind -n S-left select-pane -L | |
bind -n S-down select-pane -D | |
bind -n S-up select-pane -U | |
bind -n S-right select-pane -R | |
bind -n C-o select-pane -t :.+ | |
# Vimのキーバインドでペインをリサイズする | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
#----------------------------------------------- | |
# カラー・ステータスバー設定 | |
#----------------------------------------------- | |
set -g status-fg cyan | |
set -g status-bg black | |
set -g status-left-length 40 | |
set -g status-left '#[fg=black,bg=green][#H]Session: #S #[default]' | |
set -g status-right '#[fg=black,bg=cyan,bold] [%Y-%m-%d(%a) %H:%M]#[default]' | |
# window-status-current | |
setw -g window-status-current-fg black | |
setw -g window-status-current-bg cyan | |
setw -g window-status-current-attr bold#,underscore | |
# pane-active-border | |
set -g pane-active-border-fg green | |
set -g pane-active-border-bg green | |
set -g pane-border-fg colour236 | |
set -g pane-border-bg colour236 | |
# アクティブなウィンドウを目立たせる | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment