@nemos
2017-05-06T03:17:45.000000Z
字数 1644
阅读 822
tools
# ubuntu环境
sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install tmux-next=2.3~20161124~bzr3624+20-1ubuntu1~ppa0~ubuntu16.04.1
tmux-next -V
sudo ln -s /usr/bin/tmux-next /usr/bin/tmux
默认的<<prefix>>
为<Ctrl+b>
tmux new -s basic #开启新会话
tmux ls #查看会话
tmux a -t sesname #回到会话
tmux kill-session -t #关闭会话
<prefix> + d #退出当前会话
session
快捷键 | 操作 |
---|---|
<prefix> + s |
查看/切换Session |
<prefix> + d |
离开Session |
<prefix> + $ |
重命名当前Session |
window
快捷键 | 操作 |
---|---|
<prefix> + c |
创建Window |
<prefix> + & |
关闭Window |
<prefix> + n |
切换到下一个Window |
<prefix> + p |
切换到上一个Window |
<prefix> + Window号 |
切换Window号 |
<prefix> + w |
查看/切换Window |
panel
快捷键 | 操作 |
---|---|
<prefix> + x |
关闭pane |
<prefix> + % |
垂直拆分 |
<prefix> + " |
水平拆分 |
<prefix> + q |
显示Pane编号 |
<prefix> + o |
切换到下一个Pane |
<prefix> + z |
切换Pane的全屏 |
<prefix> Alt + 方向 |
调整Pane的大小 |
C-a
为<prefix>
<prefix> + hjkl # 切换panel
<prefix> + HJKL # 拉伸panel
<prefix> + C + hjkl # 切换window
<prefix> + C + hjkl
<prefix> C-c creates a new session
<prefix> e opens ~/.tmux.conf.local with the editor defined by the $EDITOR environment variable (defaults to vim when empty)
<prefix> r reloads the configuration
<prefix> C-f lets you switch to another session by name
<prefix> C-h and <prefix> C-l let you navigate windows (default <prefix> n and <prefix> p are unbound)
<prefix> Tab brings you to the last active window
<prefix> h, <prefix> j, <prefix> k and <prefix> l let you navigate panes ala Vim
<prefix> H, <prefix> J, <prefix> K, <prefix> L let you resize panes
<prefix> < and <prefix> > let you swap panes
<prefix> + maximizes the current pane to a new window
<prefix> m toggles mouse mode on or off
<prefix> U launches Urlview (if available)
<prefix> F launches Facebook PathPicker (if available)
<prefix> Enter enters copy-mode
<prefix> b lists the paste-buffers
<prefix> p pastes from the top paste-buffer
<prefix> P lets you choose the paste-buffer to paste from
C-l clears both the screen and the history