mac下多窗口tmux使用

对与mac来说一个终端只能开一个窗口,使用这个软件可以实现多窗口的开启

直接在终端运行
$ brew install tmux

$ tmux -V
tmux 2.9a

$ cd ~
$ touch .tmux.conf
$ cat .tmux.conf

set -g mouse on
#setw -g mode-keys vi
#bind-key -t vi-copy 'y' copy-pipe "pbcopy"
#bind-key -T copy-mode-vi v send -X begin-selection
#bind-key -T copy-mode-vi y send -X copy-selection
#bind-key -t emacs-copy MouseDragEnd1Pane copy-pipe "pbcopy"
#bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "pbcopy"
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"

打开一个tmux终端运行以下命令
tmux source-file ~/.tmux.conf

你可能感兴趣的:(计算机)