fixed macos ascii and package manager indentation

This commit is contained in:
axoteric 2022-03-09 06:52:05 +00:00
parent c7f9499c24
commit 3d72e6d94e
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
.--``--. .--``--.
{YELLOW} ww OωO w {YELLOW} ww OωO w
{RED} w w {RED} w w
{PINK} w w {PINK} w w
{MAGENTA} w w
{BLUE} www_-_www {BLUE} www_-_www

View file

@ -471,7 +471,7 @@ int print_info(struct configuration* config_flags, struct info* user_info) {
responsively_printf(print_buf, "%s%s%sSHEWW %s%s", MOVE_CURSOR, NORMAL, BOLD, NORMAL, user_info->shell); responsively_printf(print_buf, "%s%s%sSHEWW %s%s", MOVE_CURSOR, NORMAL, BOLD, NORMAL, user_info->shell);
#if defined(__APPLE__) && !defined(__IPHONE__) // some time ago __IPHONE__ was defined as TARGET_OS_IPHONE, but it was defined also in m1 macs, so I changed it #if defined(__APPLE__) && !defined(__IPHONE__) // some time ago __IPHONE__ was defined as TARGET_OS_IPHONE, but it was defined also in m1 macs, so I changed it
if (config_flags->show_pkgs) // print pkgs for mac os if (config_flags->show_pkgs) // print pkgs for mac os
system("ls $(brew --cellar) | wc -l | awk -F' ' '{print \" \x1b[34mw w \x1b[0m\x1b[1mPKGS\x1b[0m \"$1 \" (brew)\"}'"); system("ls $(brew --cellar) | wc -l | awk -F' ' '{print \" \x1b[34m \x1b[0m\x1b[1mPKGS\x1b[0m \"$1 \" (brew)\"}'");
#else #else
if (config_flags->show_pkgs) // print pkgs if (config_flags->show_pkgs) // print pkgs
responsively_printf(print_buf, "%s%s%sPKGS %s%s%d: %s", MOVE_CURSOR, NORMAL, BOLD, NORMAL, NORMAL, user_info->pkgs, user_info->pkgman_name); responsively_printf(print_buf, "%s%s%sPKGS %s%s%d: %s", MOVE_CURSOR, NORMAL, BOLD, NORMAL, NORMAL, user_info->pkgs, user_info->pkgman_name);