hotfix: get $USER at runtime

This commit is contained in:
Muhammad Nauman Raza 2024-03-24 14:15:32 +00:00
parent b6cfbf23c3
commit 6f20950532
No known key found for this signature in database
GPG key ID: 31BC90D626D2DBBE

View file

@ -35,7 +35,7 @@ fn main() {
let ascii = ["(\\ /)", "( . .)", &bottom]; let ascii = ["(\\ /)", "( . .)", &bottom];
let hostname = fallible::hostname().unwrap_or(String::from("N/A")); 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()); let combined = format!("{}@{}", user.italic(), hostname.italic());