From 2a9773e3ef19312fd5c36f8e56bc62b6bd1146c2 Mon Sep 17 00:00:00 2001 From: JF Ding Date: Mon, 14 Oct 2024 00:32:27 +0800 Subject: [PATCH] depress stderr msg of ranger when run fm cmd --- src/boxops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boxops.rs b/src/boxops.rs index a862477..2740671 100644 --- a/src/boxops.rs +++ b/src/boxops.rs @@ -51,7 +51,7 @@ pub fn file_manager() -> Result<()> { let fm = which("ranger").unwrap_or(def_fm.into()); run_cmd!( - sh -c "$fm $basedir" + sh -c "$fm $basedir 2>/dev/null" )?; Ok(()) }