mirror of
https://github.com/NotAShelf/tinierfetch.git
synced 2024-11-26 15:16:50 +00:00
thanks to @jtbx for smaller code
This commit is contained in:
parent
a4afbc3750
commit
e4aef3bd13
1 changed files with 6 additions and 10 deletions
14
tinyfetch.c
14
tinyfetch.c
|
@ -2,14 +2,10 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
int main(void){
|
int main(void){
|
||||||
printf("\x1b[31muser:\x1b[0m ");
|
printf("\x1b[31muser:\x1b[0m %s\n", getenv("USER"));
|
||||||
printf(getenv("USER"));
|
printf("\x1b[32msh:\x1b[0m %s\n", getenv("SHELL"));
|
||||||
printf("\n\x1b[32msh: \x1b[0m");
|
printf("\x1b[33mterm:\x1b[0m %s\n", getenv("TERM"));
|
||||||
printf(getenv("SHELL"));
|
printf("\x1b[34mlocale:\x1b[0m %s\n", getenv("LANG"));
|
||||||
printf("\n\x1b[33mterm:\x1b[0m ");
|
printf("\x1b[35mcolors: \x1b[0m\x1b[41m \x1b[42m \x1b[43m \x1b[44m \x1b[45m \x1b[0m\n");
|
||||||
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue