出处:https://qastack.cn/superuser/210125/scroll-shell-output-with-mouse-in-tmux
加载配置文件:
vim ~/.tmux.conf
添加:
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
重新加载文件:
tmux source-file ~/.tmux.conf