中国黑防联盟

Linux系统中如何配置Tmux?

中国黑防联盟 电脑使用教程 2024-04-28 20:49:44 0
  在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了。