萬盛學電腦網

 萬盛學電腦網 >> Linux教程 >> Linux系統中如何配置Tmux?

Linux系統中如何配置Tmux?

  在Linux系統中想要把多個低速信號合成一個高速信號,或者把一個高速信號分解成多個低速信號。可以用終端復用器來實現,在Linux中使用tmux就是公認的提高終端操作效率的方法。本文就來教大家Linux系統中如何配置Tmux?

Linux系統中如何配置Tmux?

  Linux配置Tmux

  unbind C-b

  set -g prefix C-a

  setw -g mode-keys vi

  # split window like vim

  # vim‘s defination of a horizontal/vertical split is revised from tumx’s

  bind s split-window -h

  bind v split-window -v

  # move arount panes wiht hjkl, as one would in vim after C-w

  bind h select-pane -L

  bind j select-pane -D

  bind k select-pane -U

  bind l select-pane -R

  # resize panes like vim

  # feel free to change the “1” to however many lines you want to resize by,

  # only one at a time can be slow

  bind 《 resize-pane -L 10

  bind 》 resize-pane -R 10

  bind - resize-pane -D 10

  bind + resize-pane -U 10

  # bind : to command-prompt like vim

  # this is the default in tmux already

  bind : command-prompt

  以上就是Linux系統中配置Tmux的步驟了,在命令行中按順序執行上述的代碼,就可以自動配置Tmux了。

copyright © 萬盛學電腦網 all rights reserved