Skip to content

Commit

Permalink
Merge pull request #4 from sushi-ae/main
Browse files Browse the repository at this point in the history
remove useless idfk
  • Loading branch information
abrik1 authored Oct 1, 2023
2 parents d218c2e + 60af973 commit bd8a49f
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions src/tinyfetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,22 @@
#include "config.h"

int main(void){
if (SHOW_USER == 1){
if (SHOW_USER)
printf("\x1b[31muser:\x1b[0m \t%s\n", getenv("USER"));
}

if(SHOW_SH == 1){
if(SHOW_SH)
printf("\x1b[32msh:\x1b[0m \t%s\n", getenv("SHELL"));
}

if(SHOW_TERM == 1){
if(SHOW_TERM)
printf("\x1b[33mterm:\x1b[0m \t%s\n", getenv("TERM"));
}

if(SHOW_LOCALE == 1){
if(SHOW_LOCALE)
printf("\x1b[34mlocale:\x1b[0m\t%s\n", getenv("LANG"));
}

if(SHOW_COLS == 1){
if(COL_BLOCKS_COL == 1){
if(SHOW_COLS){
if(COL_BLOCKS_COL)
printf("\x1b[35mcolors: \x1b[0m\x1b[41m%s\x1b[42m%s\x1b[43m%s\x1b[44m%s\x1b[45m%s\x1b[0m\n", col_block, col_block, col_block, col_block, col_block);
} else {
printf("\x1b[35mcolors: \x1b[0m\x1b[31m%s\x1b[32m%s\x1b[33m%s\x1b[34m%s\x1b[35m%s\x1b[0m\n", col_block, col_block, col_block, col_block, col_block);
}
else
printf("\x1b[35mcolors: \x1b[0m\x1b[31m%s\x1b[32m%s\x1b[33m%s\x1b[34m%s\x1b[35m%s\x1b[0m\n", col_block, col_block, col_block, col_block, col_block);
}
return 0;
}

0 comments on commit bd8a49f

Please sign in to comment.