| 1 | #include "user.h" |
| 2 | #include "common.h" |
| 3 | |
| 4 | const char *display_user_name() { |
| 5 | return run_command_s("whoami"); |
| 6 | } |
| 7 | |
| 8 | const char *display_user_host() { |
| 9 | return run_command_s("command -v hostname >/dev/null 2>&1 && hostname || " |
| 10 | "cat /etc/hostname"); |
| 11 | } |