tinierfetch/tinyfetch.c

12 lines
393 B
C
Raw Normal View History

2023-09-10 12:58:28 +00:00
#include <stdio.h>
#include <stdlib.h>
int main(void){
2023-09-10 13:05:44 +00:00
printf("\x1b[31muser:\x1b[0m %s\n", getenv("USER"));
printf("\x1b[32msh:\x1b[0m %s\n", getenv("SHELL"));
printf("\x1b[33mterm:\x1b[0m %s\n", getenv("TERM"));
printf("\x1b[34mlocale:\x1b[0m %s\n", getenv("LANG"));
printf("\x1b[35mcolors: \x1b[0m\x1b[41m \x1b[42m \x1b[43m \x1b[44m \x1b[45m \x1b[0m\n");
return 0;
2023-09-10 12:58:28 +00:00
}