7
6

More than 5 years have passed since last update.

tmux 設定&Tips (自分用めも)

Posted at

screenからtmuxに乗り換えるにあたって
あまり戸惑わないように&凝りすぎないようにしてる自分用のメモ

設定

tmux.conf
# prefix key 変更
set-option -g prefix C-t
# keybind をvi風に
set-window-option -g mode-keys vi
# ペイン移動もvi風に
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# tmux.confのreloadを簡単に
bind r source-file ~/.tmux.conf; display-message "Reload Config!!"

# log output
# 参考: http://blog.glidenote.com/blog/2013/02/04/tmux-pipe-pane-logging/
bind-key H pipe-pane 'cat >> $HOME/.tmux/`date +%Y-%m-%d-%H-%M-%S`.log' \; display-message 'Started logging'
bind-key h pipe-pane \; display-message 'Ended logging'

操作

キーバインド コマンド
Prefix + c 新しいウィンドウ作成
Prefix + n 次のウィンドウに移動
Prefix + p 前のウィンドウに移動
Prefix + d デタッチ
Prefix + " ウィンドウを上下のペインに分割
Prefix + % ウィンドウを左右のペインに分割
Prefix + [ コピーモード
Prefix + ] ペースト
Prefix + t どーんと時計を表示
Prefix + ? 困ったらこれを見る
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6