mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fixup! feat: add YAZI_LEVEL env variable for shells
This commit is contained in:
parent
8c4f9308c6
commit
ab0019f8f4
1 changed files with 1 additions and 1 deletions
2
yazi-plugin/src/external/shell.rs
vendored
2
yazi-plugin/src/external/shell.rs
vendored
|
|
@ -36,7 +36,7 @@ pub fn shell(opt: ShellOpt) -> Result<Child> {
|
||||||
"YAZI_LEVEL",
|
"YAZI_LEVEL",
|
||||||
(env::var("YAZI_LEVEL")
|
(env::var("YAZI_LEVEL")
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|lvl_str| lvl_str.parse::<i32>().ok())
|
.and_then(|lvl_str| lvl_str.parse::<u32>().ok())
|
||||||
.unwrap_or(0)
|
.unwrap_or(0)
|
||||||
+ 1)
|
+ 1)
|
||||||
.to_string(),
|
.to_string(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue