Skip to content

Commit 1e9ec54

Browse files
committed
Global: add NO_CONFIG env variable
to disable parsing config files, for debugging purpose.
1 parent 068cbaf commit 1e9ec54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fastfetch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,8 @@ int main(int argc, const char** argv)
14901490
ffStrbufInitA(&data.structure, 256);
14911491
data.loadUserConfig = true;
14921492

1493-
parseConfigFiles(&instance, &data);
1493+
if(!getenv("NO_CONFIG"))
1494+
parseConfigFiles(&instance, &data);
14941495
parseArguments(&instance, &data, argc, argv);
14951496

14961497
//If we don't have a custom structure, use the default one

0 commit comments

Comments
 (0)