mirror of
https://github.com/NotAShelf/tinierfetch.git
synced 2024-11-22 13:20:48 +00:00
messy code lamo
This commit is contained in:
parent
0452c95a16
commit
494eac4a29
1 changed files with 15 additions and 0 deletions
15
tinyfetch.c
Normal file
15
tinyfetch.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in a new issue