Add command of `shell-command', `shell-command-on-region', `compile', `grep', and `background' to shell history file, eg. ~/.zsh_history.