tig 配置:在 tigrc 上设置 --all 作为默认值

tig configuration : set on tigrc --all as default

在我的 tig 配置中,我通常使用命令:

tig --all

如何将其设置为 ~/.tigrc 中的默认设置?

添加到您的 ~/.tigrc:

set cmdline-args = --all

我从 tig 项目中的 tigrc 文档中得到了这个:https://github.com/jonas/tig/blob/master/doc/tigrc.5.adoc

您想要默认使用的任何 git-log 标志来过滤默认显示在 main 视图中的提交,可以添加到 ~/.tigrc 中的 main-options:

set main-options = --exclude=refs/stash --all