注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
"""""""""""" | |
"基础设置 | |
"""""""""""" | |
syntax on "开启语法高亮 | |
"filetype on "检测文件类型 | |
filetype indent on "根据不同文件类型采用不同缩进 | |
filetype plugin on "允许插件 | |
filetype plugin indent on "启用自动补全 | |
set autoread "文件修改后自动载入 |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"github.com/fsnotify/fsnotify" | |
"io" | |
"log" | |
"os" | |
"path" |