From 494eac4a2995ecc19913ab77fe8353b0628e90ba Mon Sep 17 00:00:00 2001 From: Abhiraj Rik <133798548+abrik1@users.noreply.github.com> Date: Sun, 10 Sep 2023 18:28:28 +0530 Subject: [PATCH] messy code lamo --- tinyfetch.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tinyfetch.c diff --git a/tinyfetch.c b/tinyfetch.c new file mode 100644 index 0000000..25bbede --- /dev/null +++ b/tinyfetch.c @@ -0,0 +1,15 @@ +#include +#include + +int main(void){ + printf("\x1b[31muser:\x1b[0m "); + printf(getenv("USER")); + printf("\n\x1b[32msh: \x1b[0m"); + printf(getenv("SHELL")); + printf("\n\x1b[33mterm:\x1b[0m "); + printf(getenv("TERM")); + printf("\n\x1b[34mlocale:\x1b[0m "); + printf(getenv("LANG")); + printf("\n\x1b[35mcolors: \x1b[31m▅▅\x1b[32m▅▅\x1b[33m▅▅\x1b[34m▅▅\x1b[35m▅▅\x1b[0m\n"); + return 0; +}