From 992d0b38ae7f70863f645ce78f801636e4a4940d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 19 May 2018 08:28:10 +1000 Subject: [PATCH] general: Added --print_config to display the default config file. --- neofetch | 2 ++ neofetch.1 | 3 +++ 2 files changed, 5 insertions(+) diff --git a/neofetch b/neofetch index ac80de38..cc409a9b 100755 --- a/neofetch +++ b/neofetch @@ -4814,6 +4814,7 @@ SCREENSHOT: OTHER: --config /path/to/config Specify a path to a custom config file --config none Launch the script without a config file + --print_config Print the default config file to stdout. --stdout Turn off all colors and disables any ASCII/image backend. --help Print this text and exit --version Show neofetch version @@ -5006,6 +5007,7 @@ get_args() { ;; "--stdout") stdout="on" ;; "-v") verbose="on" ;; + "--print_config") printf "%s\\n" "$config"; exit ;; "-vv") set -x; verbose="on" ;; "--help") usage ;; "--version") diff --git a/neofetch.1 b/neofetch.1 index 67250657..8575a3ef 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -326,6 +326,9 @@ Specify a path to a custom config file \fB\-\-config\fR none Launch the script without a config file .TP +\fB\-\-print_config\fR +Print the default config file to stdout. +.TP \fB\-\-stdout\fR Turn off all colors and disables any ASCII/image backend. .TP