summaryrefslogtreecommitdiffstats
path: root/src/utils/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/command.rs')
-rw-r--r--src/utils/command.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils/command.rs b/src/utils/command.rs
index 300a471..14a40a4 100644
--- a/src/utils/command.rs
+++ b/src/utils/command.rs
@@ -12,10 +12,9 @@ use std::{
use anyhow::{anyhow, bail, Context, Result};
use dirs::home_dir;
+use std::sync::LazyLock;
-lazy_static::lazy_static! {
- pub static ref SHELL: Shell = detect_shell();
-}
+pub static SHELL: LazyLock<Shell> = LazyLock::new(detect_shell);
pub struct Shell {
pub name: String,