mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
version information in config file
This commit is contained in:
+3
-1
@@ -17,6 +17,8 @@
|
||||
"## Each line is whitespace trimmed on beginn and end.\n" \
|
||||
"## Empty lines or lines starting with # are ignored.\n" \
|
||||
"## There are more arguments possible than listed here, take a look at fastfetch --help!\n" \
|
||||
"## This version of the file was shipped with "FASTFETCH_PROJECT_VERSION".\n" \
|
||||
"## Use fastfetch --print-default-config > ~/.config/fastfetch/config.conf to generate a new one with current defaults.\n" \
|
||||
"\n" \
|
||||
"## General options:\n" \
|
||||
"# --structure "FASTFETCH_DEFAULT_STRUCTURE"\n" \
|
||||
@@ -202,7 +204,7 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con
|
||||
}
|
||||
else if(strcasecmp(key, "-v") == 0 || strcasecmp(key, "--version") == 0)
|
||||
{
|
||||
puts(FASTFETCH_PROJECT_NAME" "FASTFETCH_PROJECT_VER);
|
||||
puts(FASTFETCH_PROJECT_NAME" "FASTFETCH_PROJECT_VERSION);
|
||||
exit(0);
|
||||
}
|
||||
else if(strcasecmp(key, "--list-logos") == 0)
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
#define FASTFETCH_INDLUDED_fastfetch_config_h_in
|
||||
|
||||
#define FASTFETCH_PROJECT_NAME "@PROJECT_NAME@"
|
||||
#define FASTFETCH_PROJECT_VER "@PROJECT_VERSION@"
|
||||
|
||||
// #define FASTFETCH_PROJECT_VER_MAJOR "@PROJECT_VERSION_MAJOR@"
|
||||
// #define FASTFETCH_PROJECT_VER_MINOR "@PROJECT_VERSION_MINOR@"
|
||||
// #define FASTFETCH_PTOJECT_VER_PATCH "@PROJECT_VERSION_PATCH@"
|
||||
#define FASTFETCH_PROJECT_VERSION "@PROJECT_VERSION@"
|
||||
|
||||
#endif // FASTFETCH_INDLUDED_fastfetch_config_h_in
|
||||
Reference in New Issue
Block a user