WOGONG blog wiki read

tmux

推荐这本书:tmux: Productive Mouse-Free Development 目前使用的也是这本书推荐的配置。

Note

  • 保存Tmux屏幕输出到文件中 tmux capture-pane -S -5557 -E -642 -t 3 tmux save-buffer output.log

常用快捷键

porefix key: C-b -> C-a

bind-key P command-prompt -p ‘save history to filename:’ -I ‘~/tmux.history’ ‘capture-pane -S -32768 ; save-buffer %1 ; delete-buffer’

- prefix c ; new window
- prefix z ; maximize
- prefix d ;
- prefix D ; choose which to detach
- prefix space ; change layout
- prefix ! ; make current pane to be a new window
- prefix x ; close current window
- prefix q ; show pane num
- prefix . ; change window num
- prefix , ; rename currrent num
  • Emacs key binding

    Ctrl + s // search in buffer Ctrl + r // search in buffer reverse direction


Published 2014-09-02 00:00:00 +0800
Updated 2018-06-05 14:57:41 +0000
Link: