diff options
Diffstat (limited to 'src/proclist.rs')
-rw-r--r-- | src/proclist.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/proclist.rs b/src/proclist.rs index 38b66fc..f05612f 100644 --- a/src/proclist.rs +++ b/src/proclist.rs @@ -114,7 +114,9 @@ impl Listable for ListView<Vec<Process>> { impl ListView<Vec<Process>> { fn run_proc(&mut self, cmd: &str) -> HResult<()> { - let handle = std::process::Command::new("sh") + let shell = std::env::var("SHELL").unwrap_or("sh".into()); + + let handle = std::process::Command::new(shell) .arg("-c") .arg(cmd) .stdin(std::process::Stdio::null()) |