Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tig configuration : set on tigrc --all as default

Tags:

git

tig

In my tig configuration I usually use the command:

tig --all

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

like image 559
user3313834 Avatar asked Dec 06 '22 20:12

user3313834


2 Answers

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
like image 83
Jonas Fonseca Avatar answered Dec 27 '22 06:12

Jonas Fonseca


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

like image 39
Wolf Avatar answered Dec 27 '22 05:12

Wolf