pub fn current_session_id() -> Option<String>
Return the current tmux session id (e.g. $3), or None if not inside a tmux server or the query fails.
$3
None