From ab0019f8f4eefea652a658a166bb0f570d8f9653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Donk=C3=B3?= Date: Mon, 15 Jan 2024 17:08:21 +0100 Subject: [PATCH] fixup! feat: add `YAZI_LEVEL` env variable for shells --- yazi-plugin/src/external/shell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-plugin/src/external/shell.rs b/yazi-plugin/src/external/shell.rs index ea4d3071..f3908795 100644 --- a/yazi-plugin/src/external/shell.rs +++ b/yazi-plugin/src/external/shell.rs @@ -36,7 +36,7 @@ pub fn shell(opt: ShellOpt) -> Result { "YAZI_LEVEL", (env::var("YAZI_LEVEL") .ok() - .and_then(|lvl_str| lvl_str.parse::().ok()) + .and_then(|lvl_str| lvl_str.parse::().ok()) .unwrap_or(0) + 1) .to_string(),