Compare commits
No commits in common. "b7f5e8d04582b3d890408a17ba0ba81cbbccff60" and "087a2fe66e68a5cef009424dbfaa3fa009caceb4" have entirely different histories.
b7f5e8d045
...
087a2fe66e
1 changed files with 4 additions and 10 deletions
|
@ -174,16 +174,10 @@ pub fn new(pargs: &mut Arguments) {
|
|||
if let Some(command) = command { new.shell_command = Some(command.to_string_lossy()); }
|
||||
if detached { new.detached = true; }
|
||||
if let Ok(target_dir) = target_dir { new = new.start_directory(target_dir); }
|
||||
if !window_name.is_empty() { new.window_name = Some(window_name.into()); }
|
||||
|
||||
let mut tmux = Tmux::new().add_command(new);
|
||||
|
||||
// rename window if var not empty
|
||||
if !window_name.is_empty() {
|
||||
let auto_name = commands::RenameWindow::new()
|
||||
.new_name(window_name);
|
||||
tmux = tmux.add_command(auto_name);
|
||||
}
|
||||
|
||||
tmux.output().ok();
|
||||
Tmux::new()
|
||||
.add_command(new)
|
||||
.output().ok();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue