history
history copied to clipboard
Avoid syntax error in case PROMPT_COMMAND is not set
I got a -bash: PROMPT_COMMAND: line 1: syntax error near unexpected token `;' so added a check if PROMPT_COMMAND is set.