Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created June 19, 2013 09:01
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 shigemk2/5812814 to your computer and use it in GitHub Desktop.
Save shigemk2/5812814 to your computer and use it in GitHub Desktop.
#+----------------------------------------------------------------------------------------+
# セッションオプション
#+----------------------------------------------------------------------------------------+
#新しいウィンドウのベース番号
set-option -g base-index 1
#全てのベルを無視
set-option -g bell-action none
#ウィンドウ履歴で保持される最大行数
set-option -g history-limit 5000
#Escapeキー入力時の待ち時間(0.5秒)をキャンセル
set-option -s escape-time 0
# # 自動リネームを切る
set-window-option -g automatic-rename off
#+----------------------------------------------------------------------------------------+
# キーバインド
#+----------------------------------------------------------------------------------------+
#コピーモードに入る
bind-key y copy-mode
#Yで一行コピー
#http://blog.m4i.jp/entry/2012/02/13/155233
bind-key -t vi-copy Y copy-line
#~/.tmux.conf をリロード
bind-key r source-file ~/.tmux.conf; display "Reloaded!"
#ペインを水平・垂直分割
bind-key s split-window -h
bind-key v split-window -v
#h,j,k,lでペインを切り替え
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment