https://zhuanlan.zhihu.com/p/419472307
https://www.zhihu.com/question/656229461/answer/3506519415
另外,使用tmux直接就支持了使用“+”、“*”作为系统剪切板
TMUX:
在.tmux.conf中添加
set -g set-clipboard on
SSH:
https://github.com/lemonade-command/lemonade
安装lemonade:
1.安装golang
yum install golang
2.新建目录
需要先生成 go.mod 文件
# 生成 mod 文件(切换到模块根目录)
go mod init modulename
# 清理无效依赖,增加缺失依赖
go mod tidy
3.go包管理网址切换到国内
go env -w GOPROXY=https://goproxy.cn
4.安装lemonade
go get -d github.com/lemonade-command/lemonade
cd $GOPATH/src/github.com/lemonade-command/lemonade/
上面这个目录可能不同
比如我的在/root/go/pkg/mod/github.com/lemonade-command/lemonade@v1.1.2
make install
其中go env
可以查看go相关安装的环境变量