diff --git a/luau/examples/system_info.luau b/luau/examples/system_info.luau index 8b13789..bb22975 100644 --- a/luau/examples/system_info.luau +++ b/luau/examples/system_info.luau @@ -1 +1,40 @@ +--!strict +--scuffed fastfetch +--"rapidfetch" + +local arch_ascii_art = [[ + -` + .o+` + `ooo/ + `+oooo: + `+oooooo: + -+oooooo+: + `/:-:++oooo+: + `/++++/+++++++: + `/++++++++++++++: + `/+++ooooooooooooo/` + ./ooosssso++osssssso+` + .oossssso-````/ossssss+` + -osssssso. :ssssssso. + :osssssss/ osssso+++. + /ossssssss/ +ssssooo/- + `/ossssso+/:- -:/+osssso+- + `+sso+:-` `.-/+oso: +`++:. `-/+/ +.` `/ +]] + +local BOLD, CYAN = TERMINAL.OUT.FOREGROUND.BOLD, TERMINAL.OUT.FOREGROUND.CYAN +local USER, HOST = BOLD(SHELL.SYSTEM.USERNAME), BOLD(SHELL.SYSTEM.HOSTNAME) + +local IsArch = SHELL.SYSTEM.DISTRO == "Arch Linux" +if IsArch then + print(BOLD(CYAN(arch_ascii_art))) +end +print(IsArch and `{CYAN(USER)}@{CYAN(HOST)}` or `{USER}@{HOST}`) +print("-----------------------") + +for name, val in SHELL.SYSTEM do + print(`{IsArch and BOLD(CYAN(name)) or BOLD(name)}: {val}`) +end \ No newline at end of file