summaryrefslogtreecommitdiffstats
path: root/src/shell_menu.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-04-04 23:49:33 +0200
committerqkzk <qu3nt1n@gmail.com>2023-04-04 23:49:33 +0200
commitd568556a4a1a211056efab10ca55a5a6631412b7 (patch)
tree2ec0dd9f84f1f08a1887e2574ed2e3f72c7d98d0 /src/shell_menu.rs
parentd04825d36f294560d7a1db01680042a9ea506260 (diff)
basic shell execution with !
Diffstat (limited to 'src/shell_menu.rs')
-rw-r--r--src/shell_menu.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell_menu.rs b/src/shell_menu.rs
index cbe32fc..4bb9932 100644
--- a/src/shell_menu.rs
+++ b/src/shell_menu.rs
@@ -52,12 +52,12 @@ impl ShellMenu {
.directory_of_selected()?
.to_str()
.context("event_shell: couldn't parse the directory")?;
- execute_in_child_without_output(&status.opener.terminal, &vec!["-d", path, "-e", command])?;
+ execute_in_child_without_output(&status.opener.terminal, &["-d", path, "-e", command])?;
Ok(())
}
fn simple(status: &Status, command: &str) -> Result<()> {
- execute_in_child_without_output(&status.opener.terminal, &vec!["-e", command])?;
+ execute_in_child_without_output(&status.opener.terminal, &["-e", command])?;
Ok(())
}