Add shell detection && hooks for shell