Fix "command not found: shopt" inside env.
Add some other useful settings for history.