tmux 自分メモ
設定は以下です。
$ grep -v -e '#' -e '^$' .tmux.conf set-window-option -g utf8 on set -s escape-time 0 set-window-option -g mode-keys emacs 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
基本的には以下なエントリの通り、なんですが自分メモってことで。
tmux の起動とか諸々
- 起動 は tmux で
- tmux ls で起動したセッションが確認可能
$ tmux ls 0: 2 windows (created Sun Jan 20 12:29:30 2013) [227x50] 2: 1 windows (created Sun Jan 20 12:31:50 2013) [227x50]
- 一番左の id 指定して attach
- tmux a -t 0
- 一つだけなら tmux a で良い
ウィンドウ
基本的には meta なキーが C-t なのでこれまでと同様
- C-t c でウィンドウ追加
- C-t [番号] で番号なウィンドウに移動
- 10 以上ってどうなんだろ
- C-t [np] で前後移動
- C-t , で名前変更
デフォ厨ですので
おそらくこれ以上のカスタマイズはしないと思います。
縦に分割できるだけで screen からこっちに、というのもかなり微妙ですがご容赦頂ければ幸いです。
ペイン削除
削除、って多分しないと思うけど以下から確認。
どっちがどうなのか不明ですが以下らしい。
- ペイン分割解除
- C-b !
- ペイン強制終了
- C-b x
むむ、どう違うのか。