$ tmux # 列出當前有多少 session。 $ tmux ls # attach 指定的 session。 $ tmux attach [-t number] # 從當前 session detach。 $ tmux detach # 刪除指定的 session。 $ tmux kill-session [-t number]
$ cat ~/.tmux.conf # MOUSE MODE set -g mouse on
$ cat ~/.tmux.conf # GENERAL SETTING # 將前置鍵設成 Ctrl + A set -g prefix C-a unbind C-b bind C-a send-prefix # 禁止 tmux 重命名 window 名稱 setw -g automatic-rename off # 設置預設 terminal emulator set -g default-terminal "xterm" # 按下前置鍵後,按 r 重讀 .tmux.conf bind-key r source-file ~/.tmux.conf; display-message "~/.tmux.conf is reloaded" # STATUSBAR STYLE # VI MODE # MOUSE MODE set -g mouse on