open fun session(): Session
Return the shell current session, useful for accessing data like the current path for file completion, etc...