summary refs log tree commit diff stats
path: root/src/user.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/user.rs')
-rw-r--r--src/user.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/user.rs b/src/user.rs
new file mode 100644
index 0000000..7aac1b4
--- /dev/null
+++ b/src/user.rs
@@ -0,0 +1,8 @@
+use users;
+
+lazy_static! {
+    pub static ref NAME: String = users::get_current_username()
+        .unwrap()
+        .into_string()
+        .unwrap();
+}