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

Rename the session to new-name

Manual

tmux ^0.8:

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