set is used to change the value of shell attributes and positional parameters, or display the names and values of shell variables.
$ set +o history
To check whether history is turned off you can execute
$ set -o | grep history
history off
You can turn it back on by executing
$ set -o history