added setopt append_history