From b4dbc7b744bdea894aeb65478caa158ad254fecd Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sun, 24 Mar 2024 16:18:37 +0000 Subject: [PATCH] hotfix: use the whoami crate's implementation of username() --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 206dcfd..820ef07 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 = var("USER").unwrap(); + let user = username(); let combined = format!("{}@{}", user.italic(), hostname.italic());