diff options
| -rw-r--r-- | README.md | 5 | ||||
| -rwxr-xr-x | pfetch | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -57,6 +57,11 @@ PF_INFO="ascii" # Example: Only Information. PF_INFO="title os host kernel uptime pkgs memory" +# A file to source before running pfetch. +# Default: unset +# Valid: A shell script +PF_SOURCE="" + # Separator between info name and info data. # Default: unset # Valid: string @@ -1296,6 +1296,11 @@ main() { # This gives full control over what it displayed on the screen. exec 6>&1 >/dev/null + # Allow the user to execute their own script and modify or + # extend pfetch's behavior. + # shellcheck source=/dev/null + . "${PF_SOURCE:-/dev/null}" ||: + # Ensure that the 'TMPDIR' is writable as heredocs use it and # fail without the write permission. This was found to be the # case on Android where the temporary directory requires root. |
