macro_rules! rename_window {
    (@cmd ($cmd:expr) -t $target_window:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) $new_name:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr)) => { ... };
    () => { ... };
    (($cmd:expr), $($tail:tt)*) => { ... };
    ($($tail:tt)*) => { ... };
}
Expand description

Rename the current window, or the window at target-window if specified, to new-name

§Manual

tmux ^0.8:

rename-window [-t target-window] new-name
(alias: renamew)