diff options
-rw-r--r-- | main.c | 4 | ||||
-rw-r--r-- | src/host.c | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -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(); @@ -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 && " |