Hooks for non login shells