tmux 導入
つうか今朝確認してみたらでびあんパケジは導入されてました。
設定ファイルを以下から git clone して云々なのか。
$ mkdir Dropbox/tmux $ cd Dropbox/tmux $ git clone git://github.com/machu/dotfiles.git $ ln -s $HOME/Dropbox/tmux/dotfiles/.tmux.conf $HOME/.tmux.conf ln: failed to create symbolic link `/home/hoge/.tmux.conf': File exists
げ。とは言え中身は以下のみなので
set-option -g prefix C-t
退避してリトライ。
$ mv $HOME/.tmux.conf $HOME/.tmux.conf.old $ ln -s $HOME/Dropbox/tmux/dotfiles/.tmux.conf $HOME/.tmux.conf
で、中身確認。
コメント以外のソレを grep でナニ。
$ grep -v -e '#' -e '^$' .tmux.conf set-window-option -g utf8 on set -s escape-time 0 set-option -g default-command "reattach-to-user-namespace -l zsh" set-window-option -g mode-keys vi unbind C-b set -g prefix ^T bind a send-prefix unbind ^A bind ^t last-window bind r source-file ~/.tmux.conf; display-message "Reload Config!!" set -g base-index 1 set -g pane-base-index 1 set-option -g default-terminal "screen-256color" set -g status-fg white set -g status-bg colour234 set -g pane-border-fg colour245 set -g pane-active-border-fg colour39 set -g status-interval 1 set -g status-left-length 32 set -g status-right-length 150 set -g message-attr bold set -g message-fg white set -g message-bg red
全部 man で確認してしまえ。
- set-window-option -g utf8 on
- Instructs tmux to expect UTF-8 sequences to appear in this window.
- set -s escape-time 0
- Set the time in milliseconds for which tmux waits after an escape is input to determine if it is part of a function or meta key sequences. The default is 500 milliseconds.
- escape 時の wait は 0 ms に
- set-option -g default-command "reattach-to-user-namespace -l zsh"
- これ、OSX マターらしい
- のでコメントアウトの方向
- set-window-option -g mode-keys vi
- unbind C-b
- デフォの _Send the prefix key (C-b) through to the application._を取消
- set -g prefix ^T
- prefixはCtrl+tに設定
- screen も prefix が C-t なので嬉しい
- bind a send-prefix
- あら、これよく分からんな
- こーゆーのはありらしい
- bind C-a send-prefix
- でも次で C-a を取り消してるのかな
- unbind ^A
- 以下はコメントアウトしとこ
- bind a send-prefix
- unbind ^A
- bind ^t last-window
- Ctrl t + t で前のウインドウに戻る(指が完全に覚えてしまっている)
- bind r source-file ~/.tmux.conf; display-message "Reload Config!!"
- Ctrl t + r で設定ファイルを再読み込み
- ウインドウとタブは0スタートではなく1スタートに設定(そのほうが自然でしょ)
- set -g base-index 1
- set -g pane-base-index 1
- 以降は画面関連の詳細設定なのか
set-option -g default-terminal "screen-256color" set -g status-fg white set -g status-bg colour234 set -g pane-border-fg colour245 set -g pane-active-border-fg colour39 set -g status-interval 1 set -g status-left-length 32 set -g status-right-length 150 set -g message-attr bold set -g message-fg white set -g message-bg red
これを踏まえて別途設定を盛り込んで縦分割で云々できるようにしてみます。今日はもう駄目だ。作文云々は明日と明後日で対応の方向。