diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42d6dbd96..c6832bdcf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,7 @@ jobs: run: ./fastfetch --list-features - name: run fastfetch - run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors --no-buffer --load-config presets/all + run: time ./fastfetch -c presets/ci - name: run flashfetch run: time ./flashfetch @@ -134,7 +134,7 @@ jobs: run: ./fastfetch --list-features - name: run fastfetch - run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors --no-buffer --load-config presets/all + run: time ./fastfetch -c presets/ci - name: run flashfetch run: time ./flashfetch @@ -170,7 +170,7 @@ jobs: cmake -DSET_TWEAK=Off -DBUILD_TESTS=On . cmake --build . --target package ./fastfetch --list-features - time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors --no-buffer --load-config presets/all + time ./fastfetch -c presets/ci time ./flashfetch ldd fastfetch ctest @@ -225,7 +225,7 @@ jobs: run: ./fastfetch --list-features - name: run fastfetch - run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors --no-buffer --load-config presets/all + run: time ./fastfetch -c presets/ci - name: run flashfetch run: time ./flashfetch @@ -289,7 +289,7 @@ jobs: run: cp /clang32/bin/{OpenCL,vulkan-1}.dll . - name: run fastfetch - run: time ./fastfetch --disable-linewrap false --hide-cursor false --show-errors --no-buffer --load-config presets/all + run: time ./fastfetch -c presets/ci - name: run flashfetch run: time ./flashfetch diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b3cdcd3f..f59238c45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ Features: * Add `--module-key " "` as a special case for hiding keys * Support `--title-format`. See `fastfetch --help title-format` for detail * Support `--colors-key` (Colors) +* Add `-c` as a shortcut of `--load-config`. Note it was used as the shortcut of `--color` before 2.0.5 Bugfixes: * Fix fastfetch hanging in specific environment (#561) diff --git a/presets/ci b/presets/ci new file mode 100644 index 000000000..d8327be7a --- /dev/null +++ b/presets/ci @@ -0,0 +1,7 @@ +-c all +--pipe +--show-errors +--no-buffer +--publicip-timeout 1000 +--weather-timeout 1000 +--stat diff --git a/src/fastfetch.c b/src/fastfetch.c index a38f2ce0a..fd7dd8249 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -935,7 +935,7 @@ static void parseOption(FFdata* data, const char* key, const char* value) //General options// /////////////////// - else if(ffStrEqualsIgnCase(key, "--load-config") || ffStrEqualsIgnCase(key, "--config")) + else if(ffStrEqualsIgnCase(key, "-c") || ffStrEqualsIgnCase(key, "--load-config") || ffStrEqualsIgnCase(key, "--config")) optionParseConfigFile(data, key, value); else if(ffStrEqualsIgnCase(key, "--gen-config")) generateConfigFile(false, value);