diff options
Diffstat (limited to 'atuin-client/src/utils.rs')
| -rw-r--r-- | atuin-client/src/utils.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/atuin-client/src/utils.rs b/atuin-client/src/utils.rs deleted file mode 100644 index a7c6eab0..00000000 --- a/atuin-client/src/utils.rs +++ /dev/null @@ -1,14 +0,0 @@ -pub(crate) fn get_hostname() -> String { - std::env::var("ATUIN_HOST_NAME").unwrap_or_else(|_| { - whoami::fallible::hostname().unwrap_or_else(|_| "unknown-host".to_string()) - }) -} - -pub(crate) fn get_username() -> String { - std::env::var("ATUIN_HOST_USER").unwrap_or_else(|_| whoami::username()) -} - -/// Returns a pair of the hostname and username, separated by a colon. -pub(crate) fn get_host_user() -> String { - format!("{}:{}", get_hostname(), get_username()) -} |
