tig configuration : set on tigrc --all as default

1.5k Views Asked by At

In my tig configuration I usually use the command:

tig --all

How can I set this as the default in ~/.tigrc ?

2

There are 2 best solutions below

1
On BEST ANSWER

Add to your ~/.tigrc:

set cmdline-args = --all

I got this from the tigrc documentation found in the tig project: https://github.com/jonas/tig/blob/master/doc/tigrc.5.adoc

2
On

Any git-log flags you want to use by default for filtering commits shown ino the main view by default can be added to main-options in ~/.tigrc:

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