diff --git a/src/command.rs b/src/command.rs index bad5da4..d2be708 100644 --- a/src/command.rs +++ b/src/command.rs @@ -214,7 +214,9 @@ pub fn new(pargs: &mut Arguments) { let tmux = TmuxCommand::new(); let mut new = tmux.new_session(); - if command.is_some() { new.shell_command(command.unwrap().to_string_lossy()) } else { &mut new } + if command.is_some() { new.shell_command(command.unwrap().to_string_lossy()); } + + new .group_name(title) .attach() .start_directory(target_dir.unwrap_or(current_dir().unwrap().to_string_lossy().to_string())) diff --git a/src/midsession.rs b/src/midsession.rs deleted file mode 100644 index 4348c48..0000000 --- a/src/midsession.rs +++ /dev/null @@ -1,8 +0,0 @@ -use std::env::var; - -use tmux_interface::Command; - -pub fn new() { - -} - diff --git a/src/tui.rs b/src/tui.rs deleted file mode 100644 index bb77432..0000000 --- a/src/tui.rs +++ /dev/null @@ -1,5 +0,0 @@ - -pub fn main() { - println!("do tui shit here"); -} -