【文件属性】:
文件名称:gitmux:在tmux状态栏中显示Git
文件大小:15KB
文件格式:ZIP
更新时间:2021-01-28 16:21:16
git bash zsh tmux cli
Gitmux在您的tmux状态栏中显示git状态
容易。 安装并忘记它
最小的。 它在需要时显示您的需求
离散的。 如果当前目录不属于Git树,则消失
与外壳无关。 适用于所有shell bash,zsh,fish,whatsh
可定制的。 颜色,符号和布局可以自定义
先决条件
适用于所有最新的版本。
正在安装
二进制发行
适用于您的平台/体系结构二进制文件并解压缩。
从来源
(Go 1.10或更高版本)。 运行go get构建并安装gitmux :
go get -u github.com/arl/gitmux
入门
将此行添加到您的.tmux.conf :
set -g status-right '#(gitmux "#{pane_current_path}")'
客制化
可以通过YAML格式的配置文件来自定义gitmux输出。
gitmux配置文件为YAML格式:
tmux :
symbols :
branch : ' ⎇ '
hashprefix : ' : '
ahead : ↑·
behind : ↓·
staged
【文件预览】:
gitmux-master
----.goreleaser.yml(457B)
----go.mod(145B)
----gitmux.go(3KB)
----config_test.go(3KB)
----.travis.yml(217B)
----LICENSE(1KB)
----go.sum(1KB)
----testdata()
--------default.output.golden(267B)
----.github()
--------ISSUE_TEMPLATE()
--------pull_request_template.md(151B)
----README.md(6KB)
----formater.go(260B)
----format()
--------json()
--------tmux()