pub fn try_init_shell(shell: Shell)
Initialize the global shell instance, if it hasn’t been initialized yet.