shell: Also remember last options when switching hosts

Closes #1452
Reviewed-by: Stef Walter <stefw@redhat.com>