New ascii tux, now shell will not be displayed as a full path.
This commit is contained in:
parent
218ade46a8
commit
f88d4796f8
2 changed files with 14 additions and 12 deletions
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ build: uwufetch.c
|
||||||
debug:
|
debug:
|
||||||
clear
|
clear
|
||||||
gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES)
|
gcc $(FLAGS_DEBUG) -o $(NAME) $(FILES)
|
||||||
./uwufetch -id asd
|
./uwufetch
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
|
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
|
||||||
|
|
22
uwufetch.c
22
uwufetch.c
|
@ -169,7 +169,7 @@ void get_info() { // get all necessary info
|
||||||
}
|
}
|
||||||
fclose(cpuinfo);
|
fclose(cpuinfo);
|
||||||
gethostname(host, 256);
|
gethostname(host, 256);
|
||||||
sprintf(shell, "%s", getenv("SHELL"));
|
sscanf(getenv("SHELL"), "%*[bin/]%s", shell);
|
||||||
|
|
||||||
// system resources
|
// system resources
|
||||||
uname(&sys_var);
|
uname(&sys_var);
|
||||||
|
@ -326,14 +326,13 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
||||||
" /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, LPINK, WHITE, LPINK, YELLOW);
|
" /-________-\\ \n\n", YELLOW, RED, YELLOW, WHITE, YELLOW, LPINK, WHITE, LPINK, YELLOW);
|
||||||
|
|
||||||
}
|
}
|
||||||
else printf("\033[0E\033[1C%s"
|
else printf( "\033[0E\033[4C%s.--.\n"
|
||||||
"TUX for generic\n"
|
" |o_o |\n"
|
||||||
" unix system\n"
|
" |:_/ |\n"
|
||||||
" needs to be made.\n"
|
" // \\ \\\n"
|
||||||
" If you are\n"
|
" (| | )\n"
|
||||||
" reading this\n"
|
" %s/'\\_ _/`\\\n"
|
||||||
" please consider\n"
|
" \\___)=(___/\n\n", WHITE, YELLOW);
|
||||||
" contributing.\n\n", RED);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
|
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
|
||||||
|
@ -391,7 +390,10 @@ void uwu_name() { // changes distro name to uwufied(?) name
|
||||||
|
|
||||||
else {
|
else {
|
||||||
sprintf(version_name, "%s", "unknown");
|
sprintf(version_name, "%s", "unknown");
|
||||||
if (a_i_flag == 1) print_image();
|
if (a_i_flag == 1) {
|
||||||
|
print_image();
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#undef STRING_TO_UWU
|
#undef STRING_TO_UWU
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue