Skip to content

Instantly share code, notes, and snippets.

@ecpplus
Last active March 2, 2016 04:41
Show Gist options
  • Select an option

  • Save ecpplus/f42e81793c6508cb5349 to your computer and use it in GitHub Desktop.

Select an option

Save ecpplus/f42e81793c6508cb5349 to your computer and use it in GitHub Desktop.
#-----------------------------------------------
# 普通の設定
#-----------------------------------------------
# 表示をUTF-8に変更
#set-window-option -g utf8 on
setw -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 history-limit 10000
#-----------------------------------------------
# Prefixキーを変更
#-----------------------------------------------
unbind C-b
set-option -g prefix C-z
bind C-z send-prefix
#-----------------------------------------------
# 特殊なキーバインド
#-----------------------------------------------
# 設定ファイルをリロード
bind-key C-r source-file ~/.tmux.conf \; display-message "Reloaded."
# コピーモードでvとpでコピペ出来るように
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-selection
unbind -t vi-copy Enter
# | でペインを縦に分割する
bind | split-window -h
bind V split-window -h
# - でペインを横に分割する
bind - split-window -v
bind S split-window -v
unbind Space
# bind Space select-pane -t :.+
bind Space next-window
bind Tab select-pane -t :.+
#-----------------------------------------------
# カラー・ステータスバー設定
#-----------------------------------------------
#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]'
#
#setw -g window-status-current-fg white
#setw -g window-status-current-bg red
#setw -g window-status-current-attr bright
#
## 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
#
## ペインボーダーの色を設定する
#set -g pane-border-fg red
#set -g pane-border-bg white
#
## アクティブなペインを目立たせる
#set -g pane-active-border-fg white
#set -g pane-active-border-bg pink
#### COLOUR (Solarized light)
# default statusbar colors
set-option -g status-bg white #base2
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightyellow #base00
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg white #base2
set-option -g pane-active-border-fg brightcyan #base1
# message text
set-option -g message-bg white #base2
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
#set-window-option -g window-status-bell-style fg=white,bg=red #base2, red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment