From fa787a839817453d68e5f4e18ca5221e5aabcf72 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sun, 24 Mar 2024 14:15:32 +0000 Subject: [PATCH] hotfix: get $USER at runtime --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a760d5e..206dcfd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ fn main() { let ascii = ["(\\ /)", "( . .)", &bottom]; let hostname = fallible::hostname().unwrap_or(String::from("N/A")); - let user = env!("USER"); + let user = var("USER").unwrap(); let combined = format!("{}@{}", user.italic(), hostname.italic());