fetch

A MSYS2-compatible sys-info prompt
Log | Files | Refs | README | LICENSE

commit bce30040abd037b1288f5e0c935ff007b7cc894e
parent d414fdebfb717b5c6da503be0c0fcb575dd1f3ea
Author: Byron Torres <b@torresjrjr>
Date:   Sun, 21 Feb 2021 18:32:03 +0000

Add config function

Diffstat:
Mfetch | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/fetch b/fetch @@ -6,11 +6,8 @@ ## Main main() { + config colours - - graphic="${XDG_CONFIG_HOME:-$HOME/.config}/fetch/graphic.sh" - [ -f "${graphic}" ] && . "${graphic}" - graphic reposition status @@ -82,6 +79,14 @@ _palette() { } +## Config + +config() { + graphic="${XDG_CONFIG_HOME:-$HOME/.config}/fetch/graphic.sh" + [ -f "${graphic}" ] && . "${graphic}" +} + + ## Colours colours() {