Skip to content

Instantly share code, notes, and snippets.

@teshi04
Created March 13, 2014 07:21
Show Gist options
  • Save teshi04/9523275 to your computer and use it in GitHub Desktop.
Save teshi04/9523275 to your computer and use it in GitHub Desktop.
# Prefix
set-option -g prefix C-q
# デフォルトのPrefix(C-b)を解除
unbind C-b
# www1.hoge.com→www1のみ表示。
set-option -g set-titles-string "@#(hostname | sed 's/\\\\..*//')"
set-option -g set-titles on
set-option -g status on
set-option -g status-interval 2
set-option -g status-utf8 on
set-option -g status-justify "left"
set-option -g status-left-length 60
set-option -g status-right-length 90
#set-option -g status-left "#(~/.tmux-powerline/powerline.sh left)"
#set-option -g status-right "#(~/.tmux-powerline/powerline.sh right)"
set -g status-bg colour235
set -g message-attr bold
set -g message-fg white
set -g message-bg red
set -g pane-active-border-fg white
set -g pane-active-border-bg black
set-window-option -g mode-bg white
set-window-option -g mode-fg black
set-window-option -g window-status-bg black
set-window-option -g window-status-fg white
set-window-option -g window-status-current-bg green
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-attr bold
# スクロールとかマウス操作有効
set-window-option -g mode-mouse on
# utf8有効
set-window-option -g utf8 on
# コピー、選択モードのキーバインドvi/emacs
set-window-option -g mode-keys vi
# マウス有効。MacのTerminal.appでは効かず…
set-option -g mouse-select-pane on
# ウィンドウ等の番号基準値
set-option -g base-index 1
# C-q rで設定ファイル再読み込み
bind r source-file ~/.tmux.conf; display-message "Reload Config!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment