diff --git a/main.c b/main.c index 817d3e5..5e7757f 100644 --- a/main.c +++ b/main.c @@ -17,7 +17,11 @@ int main() { display_user_name(); printf("@"); display_user_host(); +#ifdef __NetBSD__ printf("\n------------------\n"); +#else + printf("------------------\n"); +#endif printf("OS: "); display_os_name(); diff --git a/src/host.c b/src/host.c index 12df5d3..d2328a7 100644 --- a/src/host.c +++ b/src/host.c @@ -29,7 +29,9 @@ void run_command(const char *command) { void display_host_model() { #if defined(__OpenBSD__) || defined(__FreeBSD__) || \ defined(__DragonFly__) - run_command("sysctl -n hw.vendor hw.product"); + run_command("sysctl -n hw.vendor && echo \" \" && " + "sysctl -n hw.version && echo \" \" &&" + "sysctl -n hw.product"); #elif defined(__NetBSD__) run_command("sysctl -n machdep.dmi.system-vendor && " "echo \" \" && sysctl -n machdep.dmi.system-version && "