on *:CLOSE:@window: { unset %variable } alias testclose { window @window %variable = $active close -@ @window }